create an array using for loop in javascript code example
Example: javascript loop and array
var array = ["hello","world"];
array.forEach(item=>{
console.log(item);
});
var array = ["hello","world"];
array.forEach(item=>{
console.log(item);
});