Lin-cT / stu2

MIT License
0 stars 0 forks source link

1.4 Correcting errors | Lindsay’s Blog #5

Open utterances-bot opened 11 months ago

utterances-bot commented 11 months ago

1.4 Correcting errors | Lindsay’s Blog

Practice with identifying and correcting code blocks

https://lin-ct.github.io/stu2/basics/js-debug

7mwang commented 11 months ago
  1. nice recognition of the fact that pushing i would just be pushing a number, good comment to show you recognize that
  2. good use of length, nice comments to show your knowledge 3a. there were a number of ways to complete this, but I think you did it in a clean way, for reference you can also use modulo to get the remainder when you divide by 2 3b. nice use of if/else condition statements to separate those numbers that are divisible by 5 and those who are divisible by 2, not 100% sure if === is necessary here though Challenge: Nice recognition of why toFixed() is used, and accomplishes the task nicely and quickly using a for loop