Showing posts with label JavaScript. Show all posts
Showing posts with label JavaScript. Show all posts

Tuesday, December 18, 2018

Introduction To JavaScript - Created By Brandon Eich

What Is JavaScript ?

JavaScript was created in 10 days in May 1995 by Brandon Eich then working at Netscape and now of Mozilla. The original name of JavaScript was Mocha (name chosen by founder of Netscape).In September 1995 name changed to live script.

  • JavaScript is a high-level un-typed and interpreted programming language.
  • Despite some naming, synthetic and standard library similarities, JavaScript and Java are otherwise unrelated.

History of JavaScript:

  • JavaScript was created in 10 days in May 1995 by Brandon Eich then working at Netscape and now of Mozilla.
  • The original name of JavaScript was Mocha (name chosen by founder of Netscape).
  • In September 1995 name changed to live script.
  • Again in December 1995 name change to JavaScript.

Why JavaScript ?

  • JavaScript is used in web pages to add functionality validate forms communicating with server and read write HTML elements.
  • JavaScript is a client side scripting language. 
    JavaScript is used in web pages to add functionality validate forms communicating with server and read write HTML elements. JavaScript is a client side scripting language.

JavaScript interpreter:

  • As a browser goes through the JavaScript ,it to a special program called interpreter which converts the JavaScript to the machine code your computer understands.
  • Browsers come equipped with JavaScript interpreters.
Where to write code?
  • In the same HTML file.
  • In a separate file which can be embedded into HTML file.
In HTML file:
<script type="text/javascript">
....
....
</script> 

In External file:
External script cannot contain the <script></script> tags!. 


 Regards,
Hints 4 You.
Thanx For giving your precious time.
We will meet again via next post.

*Features: