Loops in javascript
for loop:
Single for loop: Below is the syntax of a for loop with the example of skipping the even numbers and printing the odd numbers between 1 to 10.
for (let i = 0; i <=10; i++) {
const element = i;
if (element%2==0) {
contin...
udayraj.sawant.com3 min read