📜  javascript代码示例中的while循环

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

代码示例6
const numbers = [3, 4, 8, 9, 2];
let number = 0;
while (number < numbers.length) {
    const getNumbers = numbers[number];
    console.log(getNumbers)
    number++
}
//Expected output:3 4 8 9 2