📜  如何在javascript代码示例中打印数字

📅  最后修改于: 2022-03-11 15:03:10.838000             🧑  作者: Mango

代码示例1
for (var i = 1; i <= 100; i++) {
 console.log(i);
}
//the boolean or the second term in the for statement
//which in this case is i <= 100 makes the console print
// numbers 1-100 
//KEY: REPLACE !)) WITH THE NUMBER U WANT IT TO GO UNTIL