ES6 while 循环 ES6 for_of 循环 ES6 do_while 循环 ES6 while 循环 var num = 5; var factorial = 1; while(num >= 1) { factorial = factorial * num; num--; } console.log("The factorial is "+factorial); ES6 for_of 循环 ES6 do_while 循环