老师请检查
来源:2-6 编程练习
我代码么问题
2021-11-10 20:12:03
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title></title>
</head>
<body>
<script>
const arr = ["a",["b","c",["d"],[undefined,"g",["x"],["y"]]],"h",["l"]];
/*补充代码*/
const [a, [, , , [b = 1, , [c]]]] = arr;
document.write(a,b,c);
</script>
</body>
</html>
1回答
好帮手慕星星
2021-11-11
同学你好,代码解构没问题。继续加油,祝学习愉快!