Answers for "how to loop in a javascript function"

220

js loop

var colors=["red","blue","green"];
for (let i = 0; i < colors.length; i++) { 
  console.log(colors[i]);
}
Posted by: Guest on June-17-2019
0

javascript loop

chrome.webNavigation.onCompleted.addListener(function(tab) {
    if(tab.frameId==0){
    //logic
    }
});
Posted by: Guest on September-23-2021

Code answers related to "how to loop in a javascript function"

Code answers related to "Javascript"

Browse Popular Code Answers by Language