计算: 假如每天记住5个单词,3天后一共能记住多少单词?

代码

  1. <script>
  2. for (let i = 1; i <= 3; i++) {
  3. document.write(`今天是学习的第${i}天<br>`)
  4. for (let word = 1; word <= 5; word++) {
  5. document.write(`记住第${word}个单词<br>`)
  6. }
  7. }
  8. </script>

image.png

效果

image.png