JavaScript Arrays

JavaScript Arrays: JavaScript Arrays are a type of variables that allows us to store the individual or the group of values under a single variable. What is an Array in JavaScript? The array is a special kind of variable that can hold the group of values at a time.We...

Javascript loops

Loops in JavaScript: Loops are used to execute a specific piece or block of code repeatedly until the given condition is satisfied. What is a Loop? Almost all loops contain a certain process and this process is defined by the users according to their requirements. For...

Javascript Tutorial

This JavaScript tutorial helps beginners and professionals to learn JavaScript easily. 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...

Javascript Example

<!DOCTYPE html>   <html>   <body>   <h2>Welcome to JavaScript</h2>   <script>   document.write("Hello Friends");   </script>   </body>   </html> 1234567891011...

Javascript comment

JavaScript comments are used to explain JavaScript code. It is used to add information about the code, warnings or suggestions so that end users easily understand the code. Types of JavaScript comments Two types of JavaScript comments: Single-line Comment Multi-line...

Javascript Data Types

It provides different data types to hold different types of values. There are two types of data types in Javascript. Primitive data types. Non-primitive data types. As we know that JavaScript is a dynamic type language, which means we don’t need to specify type...

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...

Javascript If Else

JavaScript use a conditional statement which is used to perform different tasks according to the conditions. There are three forms of statements use in JavaScript. if Statement. if else Statement. if else if Statement. if statement The if statement is used in...

Javascript Switch Statement

The switch statement is used in JavaScript to execute one code in multiple conditions. It is same as else if statement but it is more convenient then repeated if..else..if statement. Syntax switch (expression)   {   case 1: statement(s)   break;  ...

Pin It on Pinterest