请老师检查代码♥

来源:2-11 编程练习

xcn_aaaa

2022-10-13 09:07:13

<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    <script>
        let str = "study hard and make and progress every day study"
        // 在此补充代码
        let arr = str.split(' ');
        let s  = new Set(arr);
        let newStr = [...s].join(' ');
        console.log(newStr);
    </script>
</body>
</html>


写回答

1回答

好帮手慕久久

2022-10-13

同学你好,代码是对的,很棒,祝学习愉快!

0

前端工程师

前端入门如同写字,如果你不知道从哪开始,那就选择前端(含Vue3.x,React17,TS)

20327 学习 · 17877 问题

查看课程