📜  数组 [0] - Javascript 代码示例

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

代码示例1
let words = [
   'p',
   'l',
   'o'
];
console.log(words[0])
//always prints the first number in the array
//output will be 'p'
//if we wrote 1 instead of 0 it would print out 'l'