请老师检查

来源: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,bof m){

          console.log(a.padEnd(20,' -'),b.padStart(10,'count: 00'));

      }

   </script>

</body>

</html>


写回答

1回答

好帮手慕慕子

2021-07-04

同学你好,效果实现是对的,继续加油,祝学习愉快~

0

0 学习 · 15276 问题

查看课程

相似问题