how to loop a list in javascript code example Example: javascript for loop[ for(i=0;i<=5;i++){ console.log(i);}