📜  8.1.2.数组长度¶ - Javascript 代码示例

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

代码示例2
/*What is the length of the two arrays?
Hint: look closely at the quotes in the classes array.*/

let classes = ["science, computer, art"];
console.log(classes.length); 
//1

let teachers = ["Jones", "Willoughby", "Rhodes"];
console.log(teachers.length); 
//3