Jalankan loop di dalam konsol.
console.log(Array.apply(null, {length: 10}).map(function(el, index){
return index;
}).join(' '));
Successful Stag
console.log(Array.apply(null, {length: 10}).map(function(el, index){
return index;
}).join(' '));