Javascript Tutorial

JavaScript tutorial for beginners and experienced programmers with examples and output online on Basics, advantages, disadvantages, features, examples, HTML, dom, CSS, tags, events, validation, object, loop, array, document, and more.

JavaScript is the most popular programming language. It is lightweight and commonly used to create interactive and dynamic web pages. It is developed by Netscape in 1995 and named LiveScript which was later renamed to JavaScript.

Note:

1. JavaScript is an object-oriented programming language.
2. JavaScript is an interpreted programming language with optional JIT-compilation support. Before Internet Explorer 8 and earlier, Firefox prior to 3.5, etc JavaScript was a purely interpreted language i.e. scripts execute without compilation. But for later versions, JavaScript code may be either interpreted or compiled using a JIT (just-in-time) compiler. Most of the latest browsers have JavaScript JIT compilers and translators.

Advantages of JavaScript:

  1. Speed: JavaScript is very fast because it is executed on the client side.
  2. Simplicity: JavaScript is relatively simple and easy to learn.
  3. Versatility: means having a wide variety of skills. JavaScript can be used in a wide variety of applications regardless of the file extension of web pages.
  4. Server Load: As JavaScript executes on the client side it reduces the server load.

Disadvantages of JavaScript:

  1. Security: As JavaScript executes on the client side it can be used to exploit the application.
  2. UI inconsistency: Sometimes JavaScript is interpreted differently by different browsers resulting in inconsistent UI.

Java Javascript tutorial:

Content Protection by DMCA.com

JavaScript interview questions: