The for loop iterates through the elements for the fixed number of times. It should be used if number of iteration is known. The syntax of for loop is given …
Category:
Basics
-
-
The JavaScript if-else statement is used to execute the code whether condition is true or false. There are three forms of the if statement in JavaScript – these are as …
-
The JavaScript switch statement is used to execute one code from multiple expressions. A typical switch statement is the first switch, followed by an expression which is often referred to …
-
Like many other programming languages comments in javascript serve a couple of purposes comments can be used to explain JavaScript code, and to make it more readable. This is especially …
Older Posts