Wednesday, 7 February 2018

What is the difference between Scripting Language and Programming Languages?

All scripting languages are programming languages.
Languages are not classed as script or not - it entirely depends on the execution environment.
If the environment is one that is interpreted, this is commonly referred to as a scripting environment.
Programming Language: Is compiled to machine code and run on the hardware of the underlying Operating System.
Scripting Language: Is unstructured subset of programming language. It is generally interpreted. it basically "scripts" other things to do stuff. It runs on a subset of the original programming language.
Note: A language can be programming language or scripting language. It depends on the environment on which it would execute.
Ex: JavaScript is programming a well as scripting language.

In chrome, JavaScript is compiled using V8, which is working as programming language. 

No comments:

Post a Comment