Scripting language vs. Programming language
scripting language-: A script is a set of programming instructions that is interpreted at runtime. A scripting language is a language that interprets scripts at runtime. Scripts are usually embedded into other software environments. The purpose of the scripts is usually to enhance the performance or perform routine tasks for an application.
In simple we can say that a scripting language is like a set of instructions that we give to a computer to make it do specific tasks. Imagine we have a robot, and we want to tell it how to perform different actions like walking, dancing, or picking up objects. A scripting language is like writing down those instructions in a way the robot can understand.
Some examples of scripting languages are:
- PHP: A scripting language that runs on a web server and can generate dynamic web pages.
- JavaScript: A scripting language that runs inside a web browser and can manipulate the web page elements.
Scripting language vs. Programming language
| Programming language | Scripting language | 
|---|---|
| 1. Programming languages like C++, Java, and C# are typically compiled. This means that the code you write is translated into machine code (binary code) before it's executed. | 1. Scripting languages like PHP, JavaScript are typically interpreted. This means that the code is executed line by line by an interpreter at runtime. | 
| 2. A programming language can run independently on any platform that supports it, such as a desktop computer or a mobile device. | 2. A scripting language usually runs inside another program or system, such as a web browser or a web server, which provides the runtime environment for it. | 
| 3. A programming language can be used for a wide range of applications, such as desktop software, mobile apps, games, operating systems, etc. | 3. A scripting language is usually more specialized for a specific domain or task, such as web development, data analysis, automation, etc. | 
| 4. A programming language is usually more complex and harder to learn and write than a scripting language. | 4. A scripting language is usually simpler and easier to learn and write than a programming language. | 
 
				 
 
							 
							