Category Archives: Javascript

JavaScript Function

A function is a container for a block of the code, that is used to perform a specific task. Using the function we can divide a big program into smaller modules or subparts. A function is like a small encapsulated block of code that can be called anywhere throughout the Program. There are two types of functions in… Read More »

JavaScript While Loop

In the previous two JavaScript tutorials, we discuss how can we use the if…else and switch case statements in JavaScript to execute a specific block of code based on single and multiple conditions. In this tutorial, we will learn about the concept of while loop in JavaScript which can execute a block of code again and again based… Read More »

JavaScript For Loop

For loop is one of the most common looping structures provided by all the high-level programming languages. In the previous JavaScript tutorial, we discuss how can we use while and do..while loop in JavaScript to execute a block of code repeatedly, in this tutorial we will learn about the JavaScriptfor loop. JavaScript for loop Statement Similar to the… Read More »

JavaScript for… and for….of loop

In the previous tutorial, we learned about JavaScript for…loop which syntax is similar to other programming languages for a loop. But in JavaScript, we get two more types of for loops for specific conditions. JavaScript for…in Loop JavaScript for…in Loop JavaScript loop The loop is used to iterate over the keys of the JavaScript object. In… Read More »

JavaScript Operators

What is an Operator in JavaScript? An Operator can be a symbol, sign or keyword, that operates on operand (values) and return a result. For example * is an Arithmetic Multiplication operator, and it can be operated between two numerical operands(data values), 5*3 , and return the multiplication of 5 and 3 as a result. JavaScript supports major… Read More »

JavaScript Syntax

The JavaScript code cannot execute standalone, it needs to be embedded in the HTML file inside the HTML <script> tag. JavaScript Syntax There are two ways, to embed a JavaScript code in an HTML file. Internal JavaScript External JavaScript Internal JavaScript Code In the Internal JavaScript code, we write the complete JavaScript code inside the HTML document between… Read More »

JavaScript Tutorial-Introduction

JavaScript is one of the most popular and futuristic Programming Language. And when we talk about its technical paradigms it is interpreted, event-driven, functional, and imperative Programming Language. JavaScript is mainly used to design and create the front-end for a website or web application. And it is one of the three main pillars of Front End technology, along… Read More »