Node js - Foreach Loop - Node JS tutorial
For Loop

Learn Nodejs - Nodejs tutorial - nodejs foreach loop - Nodejs examples - Nodejs programs
Sample code :
a=[1,2,3];
a.forEach((v) => {
console.log("The value of a is :"+v);
});
Read Also
For Loop in CCode Explanation :

Learn Nodejs - Nodejs tutorial - nodejs foreach loop code - Nodejs examples - Nodejs programs
a.forEach((v) => {
console.log("The value of a is :"+v);
});
Output :

Learn Nodejs - Nodejs tutorial - nodejs foreach loop code output - Nodejs examples - Nodejs programs