London | 26-ITP-Jan | Angela McLeary | Sprint 3 | Quote generator app#1138
London | 26-ITP-Jan | Angela McLeary | Sprint 3 | Quote generator app#1138AngelaMcLeary wants to merge 4 commits intoCodeYourFuture:mainfrom
Conversation
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
| <p id="author"></p> | ||
|
|
||
| <button type="button" id="new-quote">New quote</button> | ||
| <!-- update styling --> |
There was a problem hiding this comment.
Hi @Luro91. Thank you for your feedback. The reason for the comment was to remind me to update the styling. I will removed it.
|
|
||
| //calls it once so a quote shows immediately on page load | ||
| displayNewQuote(); | ||
| //console.log("checking for random quotes:", pickFromArray(quotes)); |
There was a problem hiding this comment.
I see a couple commented out code.
Please check the style guide: https://curriculum.codeyourfuture.io/guides/reviewing/style-guide/
Once you have solved the problem, you should remove large sections of commented out code. When you (or someone else) are reading your code, you want to know only the important pieces. Removing commented out code helps find the relevant code faster and easier.
There was a problem hiding this comment.
Hi @Luro91, Thank you for your feedback. I have updated the code removing irrelevant comments.
| autoPlayToggle.addEventListener("change", function() { | ||
| if (this.checked) { |
There was a problem hiding this comment.
Hi @Luro91, Thank you for your feedback. I appreciate it.
Luro91
left a comment
There was a problem hiding this comment.
Well done. The code works as expected and looks much cleaner now
Learners, PR Template
Self checklist
Changelist
This is a quote generator app.