亲爱的老师,我来交作业了,麻烦您帮我检查一下呢!⁄(⁄ ⁄•⁄ω⁄•⁄ ⁄)⁄

来源:2-6 编程练习

im镇辉

2021-06-26 16:42:32

<!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, c, [d], [e = 1, g, [x], [y]]], h, [l]] = arr;
        document.write(a,b,c,d,e,g,x,y,h,l);
    </script>
</body>
</html>


写回答

1回答

好帮手慕久久

2021-06-26

同学你好,代码正确,很棒,祝学习愉快!

0

0 学习 · 15276 问题

查看课程