Javascript Tutorial

JavaScript is prototype based (where class is not compulsory ), interpreted, client-side scripting language of web developed by Netscape in 1995. JavaScript is used to build interactive websites with dynamic features and to validate form data. JavaScript is high-level, dynamic and browser interpreted, supported by all modern web browsers. Apart from web browser, JavaScript is also used to build scalable web applications using Node JS.

JavaScript is also known as the Programming Language of web.

JavaScript is the only programming language for Web browsers.

JavaScript and Java are completely different languages, both in concept and design.

JavaScript was invented by Brendan Eich in 1995, and became an ECMA standard in 1997.
ECMA-262 is the official name of the standard. ECMAScript is the official name of the language.

JS is single thread programming language with callbacks.

JS is single thread programming language with callbacks.

JavaScript Can Change HTML Content

One of many JavaScript HTML methods is getElementById().

This example uses the method to "find" an HTML element (with id="demo") and changes the element content (innerHTML) to "Hello JavaScript":

document.getElementById("demo").innerHTML = "Hello JavaScript";

Javascript Applicatons

  1. Frontend development
  2. Backend development ( using node js)
  3. Software development (using ionic and react native)

HTML can only create webpage structure, css can style html, but to add functionality, we need javascript. Unlike HTML and CSS, JavaScript is Dynamic. Earlier JavaScript was meant for browser environment only, but now a days, JavaScript is also used on server Node JS and Software Development (React Native).

Also know ........

  1. JavaScript is the Most Popular Programming Language on Github in 2019.
  2. On Stack Overflow survey in 2015, JavaScript was the second most popular programming language in the world. First was Java.
  3. Latest Stack overflow survey shows that JavaScript is the most popular programming language.

Important points -

  1. Javascript is the only client side scripting( i.e. browser interpreted) language.
  2. JavaScript can build interactivity Websites.
  3. Javascript is Object Based.
  4. Javascript is Case Sensitive.
  5. Javascript can put dynamic content into a webpage/htmlpage.
  6. Javascript can react to events like Click, mouse over, mouse out, form submit etc known as JavaScript Events.
  7. Javascript can validate form data.
  8. Javascript can detect user browser using navigator Object.
  9. Javascript can be used to create cookies.
  10. Javascript can add cool animation to a webpage JS timing functions.
  11. Javascript can detect user physical location using HTML5 Geolocation API.
  12. Javascript can also be used to draw shapes, graphs, create animations and games development using HTML5 Canvas.
  13. At present, javascript has lot of libraries and framework, exp JQuery, Angular JS, React JS, Backbone JS etc, thus making Javascript more popular.
  14. Javascript can also be used in developing server side application using Node JS.
  15. Popular Code Editors like, Brackets and VS Code are written in Javascript.