Repository navigation
Conversation
|
The CYF AI reviewer checked this PR did not find any obvious problems. Please wait for a volunteer to also have a look and offer their own feedback. |
hackertainment
left a comment
There was a problem hiding this comment.
The program runs correctly and no code change required. Just need to answer 1 question and I can then mark it as completed. Thank you.
| function getRandomQuote() { | ||
| return pickFromArray(quotes); | ||
| } |
There was a problem hiding this comment.
I would like to know more about your design and thinking process. Just wondering why you would prefer implement this with a separate function? Thank you.
There was a problem hiding this comment.
Hi, yes that is a bit strange that I did that... Maybe I didn't like the name pickFromArray and wanted to call a function called getRandomQuote instead without modifying pickFromArray. And maybe I wanted to call getRandomQuote without sending in the huge array as a parameter. But in practice it does the same thing. Would you like me to remove it before you mark as complete?
There was a problem hiding this comment.
It's alright and I understand more about your thought. Thank you.
|
Congratulation, you have completed this PR successfully. |
Learners, PR Template
Self checklist
Task code
CYF-1096
Changelist
Implemented basic functionality of the quote generator and passed the pre-written test. I also updated the h1 to be more descriptive. I did not style with CSS.