Working :

  • Provides a fairly complete set of built-in functions and commands.
  • Performs math calculations, manipulate strings, play sounds, open new windows and new URLs and access and verify user input to the web forms.
  • Set attributes or properties of  web page elements, Activex Controls, applets and other objects present in browser.

Rules :

  • Java Script is case sensitive.
  • Java Script is flexible about statements.
  • Make sure to add a semicolon at the end of each statement.
  • Group statement into blocks each block may be the body of a fuction and section of code that gets executes in a loop or as part of a condition test.