Lab 13 - Loops
Challenge
With your partner, create a for loop that prints out words depending on the factors you input.
Problems
For this lab, I encountered many problems. It mainly had to do with the fact that I was rushing to complete it. I made a lot of typos and used incorrect values and had to debug things using ChatGPT (very convenient for debugging because it examines your code and breaks down where and what parts I did wrong). Furthermore, I also struggled with making it so that the output changes depending on if you change your maximum value. I only realized afterward what was going wrong by reviewing Nicole's code: I needed to make it so that the output from the function, fizzBuzz, would change the html first before appending the other numbers. I think my brain just sort of turned into mush for this assignment because I was so preoccupied with the project prototype.
Results
Here, I created a code that prints select words depending on the factors you picked and within the range you chose. Feel free to experiment.
| Pick your factors | Pick your words |
|---|---|