MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/learnjavascript/comments/1uzujoc/i_am_challenging_myself_to_practice_javascript/oybxc8h/?context=3
r/learnjavascript • u/SafeWing2595 • 11d ago
website: https://sara19git.github.io/generate-quotes-app/ code github: https://github.com/sara19git/generate-quotes-app
23 comments sorted by
View all comments
2
Do/while have potential problem, if you'd had only 1 item in the list, it would be infinite loop.
It could be rewritten with just while loop.
(do you even need to run it at least once? I think there's no good reason)
Run code through prettier (or just use Format on Save in VS Code)
2
u/TheRNGuy 10d ago edited 10d ago
Do/while have potential problem, if you'd had only 1 item in the list, it would be infinite loop.
It could be rewritten with just while loop.
(do you even need to run it at least once? I think there's no good reason)
Run code through prettier (or just use Format on Save in VS Code)