请老师检查
来源:2-7 编程练习
芜湖呼
2022-02-13 22:18:18
<!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 [fruit, count] of m){ fruit = fruit.padEnd(15, "-"); count = count.padStart(9, "Count:00"); console.log(fruit + count); } </script> </body> </html>
1回答
好帮手慕慕子
2022-02-14
同学你好,代码实现是正确的,继续加油,祝学习愉快~