Popular Post: JavaScript

JavaScript Array Const

In JavaScript, To create a const array we write const before the array name. const allows you to only modify the value of the array.

JavaScript Date Formats

The three Javascript date format types are ISO dates(2022-01-31), short dates(01/31/2022) and long dates (Jan 32 2022).

JavaScript Get Date Methods

The getDate() method returns the day of the month (1 to 31) of a date. These methods can be used for getting information from a date object.

JavaScript Random

In JavaScript, you can generate a random number with the Math.random() function. It returns a random floating-point number ranging from 0 to less than 1.

JavaScript Switch Statement

JavaScript Switch Statement is an alternative to if-else Statement. Instead of using many if-else conditions we can use Switch Statement.

JavaScript For Loop

JavaScript For Loop repeats until a specified condition evaluates to false . The JavaScript for loop is similar to the Java and C for loop.

JavaScript Loop For Of

JavaScript For Of statement lets you loop over iterable data structures such as Arrays, Strings, Maps, NodeLists, and more.

JavaScript While Loop

The while loop creates a loop that executes a specified statement as long as the test condition evaluates to true.

JavaScript typeof

In JavaScript, You can use the typeof operator to find the data type of a JavaScript variable.

JavaScript Errors

In JavaScript, to handle different errors we use 4 type of statements: Try, catch, finally and throw.

JavaScript Scope

In JavaScript, Scope determines the accessibility of variables. JavaScript has 3 types of scope: Block scope, Function scope & Global scope

JavaScript Hoisting

Hoisting is default behaviour of moving declarations to the top. A variable can be used before it has been declared.