JavaScript核心语法

时间:2023-11-10 14:15:14
【文件属性】:

文件名称:JavaScript核心语法

文件大小:6KB

文件格式:JS

更新时间:2023-11-10 14:15:14

javascript

const heroes = []; console.log(heroes[0]); heroes[0] = '蝙蝠侠'; heroes[1] = '神奇女侠'; heroes[2] = '闪电侠'; heroes[5] = '水行侠'; console.log(heroes); const mixedArray = [null, 1, [], 'two', true]; console.log(mixedArray); const [a, b, c] = [1, 2, 3]; console.log(`a = ${a}, b = ${b}, c = ${c}`); const ave


网友评论