Friday 19 January 2018

What is JavaScript?

JavaScript is a client and server-side object-based scripting language that is used to make interactive Web pages. A scripting language is a lightweight programming language with less complexity.
In addition to JavaScript some other examples of scripting languages are VBScript, Active Server Page(ASP), and Hypertext Pre-processor(PHP). 
These JavaScript is the most commonly used scripting language to add dynamism and interactivity to Webpages. This is because JavaScript written on the client-side executes on a client browser thereby reducing the load on the server.

  • JavaScript is an interpreted language which implies that scripts written in JavaScript are processed line by line.
  • JavaScript Scripts are interpreted by the JavaScript interpreter which is built-in component of the Web browser.
  • JavaScript can be written on the client-side as well server-side.
  • Client-side JavaScript allows you to validate only those programs that execute and produce the result on the client-machine.
  • Server-side JavaScript and validates only those programs that execute on the server.
  • JavaScript includes various built-in objects and features that can be used to make your Hypertext Markup Language(HTML) pages dynamic.
  • JavaScript is platform-independent which implies that you need to write the script once and can run it on any platform or browser without affecting the output of the script. 

1 comment: