Category Archives: Javascript

JavaScript Strict Mode

Using the “use strict” statement we can activate the strict mode for our JavaScript code. JavaScript Strict Mode Overview The Strict Mode introduced in JavaScript ECMAScript version 5. And we can activate it for our script using the “use strict” statement. Unlike other JavaScript code it is not a general statement, but a literal expression that eliminates some… Read More »

JavaScript Bitwise Operations

JavaScript support 7 bitwise operators that perform bits operation between two binary values using 32 bits. Although JavaScript store all the numbers as 64 bits floating points, but when its comes to bitwise operation it treats the 64 bits numbers as 32 bits binary numbers. This means before the bitwise operation performs on the numbers the JavaScript engine… Read More »

JavaScript Comparison and Logical Operators

There are two types of Operators in JavaScript Comparision and Logical operators that often used to return boolean values or test boolean values like true or false. JS Comparison Operators As the name suggests comparison operators are the symbols that are used to compare two values or variables. And they always return a boolean value either true or… Read More »

JavaScript Random

In the previous tutorial, we learned about JavaScript Math objects, there we also learned about random() method that can generate random numbers. In this tutorial, we will discuss the Math random method in detail because it is one of the most important and widely used JS Math methods. Math.random() The Math.random() method can generate a random number between… Read More »

JavaScript Array Iteration Methods

In the last tutorial, we discussed JavaScript array sorting methods and find the minimum and maximum values from an array. In this tutorial, we will learn about different array techniques and methods to iterate over every array item. Array forEach() method The forEach() mehod is used to call a function on every element or value of the array.… Read More »