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
用户评论