## Write a Node Js program to iterate over an array and print each number
const arrNumber = [1,2,3,4,5];
console.log ( "Printing numbers using a FOR Loop: ");
for (let i = 0 ; i < arrNumber.length ; i++) { console.log (arrNumber[i]);
}
|
No comments:
Post a Comment