Programming Help by Programmer's hub

JavaScript Programming language

JavaScript is a scripting language and it is a light weight programming language. JavaScript is supported by the all modern browsers and used to make HTML page more attractive and dynamic. JavaScript is completely different to the Java programming language and easy to learn. It can enhance the dynamics and interactive features of your page by allowing you to perform calculations, check forms, write interactive games, add special effects, customize graphics selections, create security passwords and more. JavaScript was formalized in the ECMAScript language standard and is primarily used as part of a web browser. JavaScript is powerful enough to write the major application and insert that application in the webpage to increase the functionality and to make web page attractive.

JavaScript Programming Code Example

function myFunction()
alert("Hello World!");

<button onclick="myFunction()">Try it</button>
JavaScript Programming language

Features of JavaScript

  • Giving the user more control over the browser
  • Detecting the user's browser, OS, screen size, etc.
  • Performing simple computations on the client side
  • Validating the user's input
  • Handling dates and time
  • Generating HTML code on-the-fly without accessing the Web server