示例示例our cl是复数。示例代码:
our cl是复数。
示例代码:
cl Student {
constructor(name, age) {
this.name = name;
this.age = age;
}
}
let student1 = new Student('John', 18);
let student2 = new Student('Mary', 19);
let ourCl = [student1, student2];
console.log(ourCl); // [Student { name: 'John', age: 18 }, Student { name: 'Mary', age: 19 }]
本站系公益性非盈利分享网址,本文来自用户投稿,不代表边看边学立场,如若转载,请注明出处
评论列表(1条)