web-profile

javascript for loop

var customArray = [3, 5, 7];
for ( var i = 0; i < customArray.length; i++ ) {
  console.log(customArray[i]); // 3, 5, 7
}

Leave a Reply

Your email address will not be published.