JavaScript Basics
JavaScript Function
JavaScript functions are used to perform operations. We can call JavaScript function many times to reuse the code. Advantage of JavaScript function There are mainly…
JavaScript Loops
The JavaScript loops are used to iterate the piece of code using for, while, do while or for-in loops. It makes the code compact. It…
JavaScript Switch
The JavaScript switch statement is used to execute one code from multiple expressions. It is just like else if statement that we have learned in…
JavaScript If statement
The JavaScript if-else statement is used to execute the code whether condition is true or false. There are three forms of if statement in JavaScript….
JavaScript Operators
JavaScript operators are symbols that are used to perform operations on operands. For example: var sum=10+20; Here, + is the arithmetic operator and = is the…
Javascript Data Types
JavaScript provides different data types to hold different types of values. There are two types of data types in JavaScript. Primitive data type Non-primitive (reference)…
JavaScript Global Variable
A JavaScript global variable is declared outside the function or declared with window object. It can be accessed from any function. Let’s see the simple…
JavaScript Variable
A JavaScript variable is simply a name of storage location. There are two types of variables in JavaScript : local variable and global variable. There…
JavaScript Comment
The JavaScript comments are meaningful way to deliver message. It is used to add information about the code, warnings or suggestions so that end user…