how to do console.log after for loop is done code example Example: console.log for loop for(var i = 1; i < 11; i += 1) { console.log(i); }