📜  带有 FOR 循环的函数 - 无论代码示例

📅  最后修改于: 2022-03-11 14:57:21.599000             🧑  作者: Mango

代码示例2
function countToFive() {
  let firstFive = "12345";
  let len = firstFive.length;
  // Fix the line below
  for (let i = 0; i < len; i++) {
    // Do not alter code below this line
    console.log(firstFive[i]);
  }
}