Introduction to JavaScript

  • VBScript is another scripting language that uses Visual Basic code for writing scripts.
  • ECMA approved JavaScript as an international standard in 1997.
  • The Microsoft version of JavaScript is known as JScript.
  • JavaScript is the first scripting language used for a browser.
  • The old name of JavaScript is LiveScript.
  • CGI was used to validate forms when JavaScript was not developed.
  • JavaScript is the default scripting language of Netscape Navigator.
  • If the language attribute is not defined, Netscape Navigator uses JavaScript as the default scripting language.
  • Netscape develops the JavaScript language.
  • A property is an attribute of an object used to change the style of the object.
  • Every property has a value that changes the style of an object.
  • JavaScript is interpreted at runtime. The script is not compiled.
  • The comment tag is used to hide the script from the non-scriptable browsers.
  • The <script>…<script> tag is used to insert scripts in a Web page.
  • An HTML document can contain any number of <script>…<script> tag
  • A variable declared inside the <script>…<script> tag but outside any function is known as global variable and can be accessed from any function within the <script tag>.
  • The increment (++) operator is used to increment the value of a variable by one.
  • Instantiation is a process of creating copies of different objects.

Continue reading