请老师检查

来源:2-5 编程练习

芜湖呼

2022-02-06 12:16:04

<!DOCTYPE html>
<html>
<head>
    <meta charset="UTF-8" />
    <title></title>
</head>
<body>
    <script>
        //在此添加代码
        const s = new Set();
        s.add(1).add(2).add(3);
        s.delete(2);
        document.write(`s中的成员总数:${s.size}<br>`);
        s.forEach(function(value, key, set){
            document.write(value + " ");
        });
    </script>
</body>
</html>


写回答

1回答

好帮手慕然然

2022-02-06

同学你好,代码实现很棒,继续加油,祝学习愉快!

0

0 学习 · 15276 问题

查看课程