📜  如何在javascript代码示例中显示1到10个奇数

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

代码示例1
let oddNumbers = 1;
while(oddNumbers < 10){
  console.log(oddNumbers);
  oddNumbers = oddNumbers + 2;
}