请老师检查
来源:2-7 编程练习
激情的樱木花道
2021-07-04 15:12:05
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8" />
<title>document</title>
</head>
<body>
<script type="text/javascript">
const m = new Map([
['apple', '10'],
['strawberry', '5'],
['Banana', '0']
])
for(let [a,b] of m){
console.log(a.padEnd(20,' -'),b.padStart(10,'count: 00'));
}
</script>
</body>
</html>
1回答
好帮手慕慕子
2021-07-04
同学你好,效果实现是对的,继续加油,祝学习愉快~