var ourArray = []; var i = 0; while(i < 5) { ourArray.push(i); i++; }
for ([initialization]; [condition]; [final-expression]) { //실행될 코드 };
var ourArray = []; var i = 0; do { ourArray.push(i); i++; } while (i < 5);