Javascript Tutorial

This JavaScript tutorial helps beginners and professionals to learn JavaScript easily. JavaScript Example with Online Editor We have given online editor option with each JavaScript example. So, you can edit any example and see the changed output.

Output:

Prerequisite To learn JavaScript you must have the knowledge of computer fundamentals only. Audience This JavaScript tutorial …

Read moreJavascript Tutorial

What is Javascript

JavaScript is a dynamic computer programming language. It is object-based scripting language i.e. lightweight and cross-platform. We can make our web page more lively and interactive, with the help of JavaScript. It was created by Brendan Eich at Netscape in 1995. ←Prev Next→

Javascript Example

Try Now JavaScript can be implemented using JavaScript statements that are placed within the <script>…</script>.

Try Now JavaScript code can be written in 3 places in JavaScript Between the <body>……</body> tag of HTML. Between the <head>……</head> tag of HTML. In .jsfile(external JavaScript). Example (code between the body tags) The below example displays JavaScript …

Read moreJavascript Example

Javascript Variable

Variables are used to store values (name=”Ram”) or expressions (Sum=x+y). Before using of variable first we need to declare it. We use keyword var to declare a variable like this:

There are two types of variables: Local Variable Global Variable Local Variable– It is declared inside block or function. Example

Global Variable-It has global scope which means, it can …

Read moreJavascript Variable

Javascript Operators

In JavaScript operators are symbol that are used to perform operations on operands. In simple words 3+2 is equal to 5. Here 3 and 2 are called operands and + is called the operator. Following are the operators used in JavaScript: Arithmetic Operators. Comparison (relational) Operators. Bitwise Operators. Logical Operators. Assignment Operators. Special Operators. Arithmetic Operators In arithmetic operators …

Read moreJavascript Operators