JavaScript Tutorial

JavaScript Tutorial


 
What is JavaScript: JavaScript is a client-side scripting language, i.e., it executes on the user's machine rather than the server hosting the website. It creates interactive web pages and adds dynamic effects to them. JavaScript is an object-oriented language like C++ and Java. However, it is not related to the Java language in any way. It is also designed for creating network-centric applications.

The biggest feature of JavaScript is its ability to react to user's actions, like button click, scrolling, and typing. It enabled designers to convert their ideas into practicality, which was not possible before.

A good designer needs to know the basics first, only then they can fully explore the capabilities of JavaScript. It is considered that JS is the most powerful language at present. So, in this tutorial, we will cover all the basics and some advanced topics.

Why uses JavaScipt
  • JavaScript is used to make web pages interactive
  • JavaScript insert dynamic text into HTML (ex: user name)
  • JavaScript react to events (ex: page load user click)
  • JavaScript get information about a user's computer (ex: browser type)
  • JavaScript performs calculations on the user's computer (ex: form validation)
  • JavaScript is a web standard (but not supported identically by all browsers)
  • JavaScript NOT related to Java other than by name and some syntactic similarities 
     Example: To display Date and Time:  
Output
Why Study JavaScript?
JavaScript is one of the 3 languages all web developers must learn:
  1. HTML to define the content of web pages like the skeleton of the web page.
  2. CSS to specify design and the layout of web pages
  3. JavaScript to program the behavior of web pages