Thursday, February 27, 2020
Home JavaScript Tutorial

JavaScript Tutorial

Javascript Tutorial

This JavaScript tutorial is designed especially for beginners and professionals. Javascript is a solution for client-side web pages to perform some action dynamically. JavaScript Translator which is embedded in the web browser (like internet explorer, google chrome, safari, firefox, etc) is responsible to translate the JavaScript code.

JavaScript is an object-based scripting language. Javascript is very lightweight and can work in cross-platform whether its windows or Linux or Mac.

JavaScript is used to create interactive websites.

Why we use Javascript on websites?

Javascript is used in websites for one or more of the following reasons:

  • Client-side validation of controls (Textbox validation, EmailID, numbers, address validation, etc)
  • The dynamic feature of drop-down menus
  • Displaying date and time
  • Displaying times (like in Online Test)
  • Displaying popup windows and dialog boxes (like an alert dialog box, confirm dialog box and prompt dialog box)
  • Displaying clocks etc.
  • Displaying some animations (like image moving on mouse move, etc)

Go through the complete tutorial of Javascript and we assure you that you will become a master in JavaScript.

Javascript If-Else Statement

Javascript If-Else Statement

Javascript If-Else Conditional statements are the very basic building blocks of any program. If the condition is true then follow the defined statements else follow...
Switch Statement in Javascript

Switch Statement in Javascript

Switch Case Switch statements can be used in place of multiple if statements where only 1 condition is checked. The advantage of switch is that,...
JavaScript For Loop

JavaScript For Loop

For loop code block contains the initialization, conditions and change expression instead of only condition which was previously used in while loop. For loop...
JavaScript For...in Loop

JavaScript For…in Loop

The for...in loop is used to iterate all the properties of an object in their actual order. The synax of the loop is such...
JavaScript Functions - Methods in JavaScript

JavaScript Functions – Methods in JavaScript

Functions (or methods) are the blocks of code that can perform operation independently according to the instructions provided. Quite technical. In layman's term, a...
Events in JavaScript

Events in JavaScript

Events in Javascript are the interactions of user with dynamic elemetns on the website such and a button, input box, form, page loading or...
JavaScript Cookies

JavaScript Cookies

A cookie is a small file that the server/website sends on the user's computer and is stored in the browser. Modern day websites hugely...
Page Redirect in JavaScript

Page Redirect in JavaScript

Page redirects can be used to redirect user to some other webpage or website depending on the choice. Page Redirect Syntax As there is not much...
While Loop in JavaScript - Do While Loop

While Loop in JavaScript – Do While Loop

Loops Suppose you are asked to write a program to print 10000 numbers. Will you write 10000 lines to perform the same task again and...

Stay connected

9,255FansLike

Latest article

Multiplication of two matrices

Multiplication of two matrices

Given two matrices, this function will multiply the two matrices and prints the result. Here, necessary and sufficient condition is the number of columns...
Subtraction of two matrices

Subtraction of two matrices

Given two matrices, we will write a function that subtracts the given matrices. Example INPUT A = { {1, 4, 7, 9}, {1, 6, 7, 6}, {6, 3, 7,...
Check if two given matrices are identical

Check if two given matrices are identical

Given two matrices, we will write a function to check whether the two matrices are identical or not. That is, if all the elements...