请老师检查代码♥
来源: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回答
同学你好,代码是对的,很棒,祝学习愉快!
相似问题