Saturday, November 5, 2016

Difference between scripting language and programming language


A programming language is a language used by humans to give instructions to a machine. 

A scripting language is a subset of programming language that is used to produce scripts, which are sets of instructions that automate tasks that would otherwise be performed manually by a human.

Sometimes the terms programming language and scripting language are used colloquially to describe compiled programming languages and interpreted programming languages, respectively. Compiled programming languages are languages whose instructions are translated (compiled) directly into machine code, whereas interpreted languages are those that require a program known as an interpreter, which interprets instructions in terms of previously compiled machine code.

   Some of the famous Scripting language:
1.JavaScript
2.PHP
3.Python
4.Ruby

     Some of the famous programming language:
1.Java
2.C
3.C++
4.C#


A example of Hello world program in JavaScript

01<!DOCTYPE HTML>
02<html>
03<body>
04
05  <p>Header...</p>
06
07  <script>
08    alert('Hello, World!')
09  </script>
10
11  <p>...Footer</p>
12
13</body>
14</html>


A example of Hello world program in Java :

public class HelloWorld {

    public static void main(String[] args) {
        // Prints "Hello, World" to the terminal window.
        System.out.println("Hello, World");
    }

} 
 
Note : I gave the example of java and javascript because
       most of the people confuse javascript with java. 
       They are totally different language.

Like my facebook page https://www.facebook.com/compro54/







No comments:

Post a Comment