Python(Programming & Scripting):
- Programming language are directly used to develop applications.
- Examples: C, C++, PythonJava, .Net etc.
- Scripting languages always run from another program.
- Examples: JavaScript, TypeScript, Python….
Program:
- A set of instructions.
- Program runs alone.
Script:
- Script is a set of Instructions
- Scripts is a program that always execute from another program.
JavaScript:
- JavaScript is the best example of Scritping language.
- JavaScript code always run with HTML program.
<!doctype html> <html> <head> <title> Java Scripting </title> </head> <body> <script> alert(“Hi I am Java Script Function”); alert(“I can run only from HTML code”); </script> </body> </html> |