JavaScript核心语法

上传:Cdasin 浏览: 19 推荐: 0 文件:JS 大小:6.09KB 上传时间:2020-10-26 06:54:39 版权申诉
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
上传资源
用户评论