Set javascript

Set only contains unique values of any type, no same or duplicates are allowed in set. Set is object in…

Loops Javascript

Loops are used to repeat statement. For example, To output numbers from 0 to 100, without loop, there is only…

while loop javascript

while loop executes statements specified number of times, till the condition become false.It is similar to for loop, except initialization…

For loop Javascript

For loop executes statements for given number of times, until condition become false. It is an Entry control loop. Syntax…

switch JavaScript

switch allows to executes different cases based on matched expression or condition. Syntax Example break keyword In switch, case always…