2-5编程练习
来源:2-5 编程练习
卷毛奋斗中
2022-05-28 20:17:09
<!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);
console.log(s.size);
s.forEach(function (value, key, set) {
console.log(value, key, set)
}, document);
</script>
</body>
</html>1回答
好帮手慕慕子
2022-05-29
同学你好,代码是现实正确的,继续加油,祝学习愉快~
相似问题