London | 26-ITP-SEP | Shirin Panahian | sprint 3 | sprint 3 Acoursework - #1596
shirinpanahian wants to merge 11 commits into
Conversation
✅ Deploy Preview for cyf-onboarding-module ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
af56932 to
31e4589
Compare
abdishakoor-dev
left a comment
There was a problem hiding this comment.
Your prediction in 1-key-errors/1.js finds both problems: the repeated name and the scope. Prettier passes on every file too.
Four things before I can mark this Complete:
2-cases.js: see my comment on line 18.3-to-pounds.js: see my comment on line 7.2-mandatory-debug/2.js: see my comment on line 28.- The PR title says
25-ITP-SEP. Your cohort is26-ITP-Sep. Please edit the title.
Add the Needs Review label again once you've pushed.
| // Use the MDN string documentation to help you find a solution | ||
| // This might help https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String/toUpperCase | ||
| function toUpperSnakeCase(text) { | ||
| const newText = text.replace(" ", "_"); |
There was a problem hiding this comment.
Try toUpperSnakeCase("lord of the rings"). What does it return? The exercise expects "LORD_OF_THE_RINGS". How many spaces does replace change? The MDN page for replace will help.
| // You will need to declare a function called toPounds with an appropriately named parameter. | ||
|
|
||
| // You should call this function a number of times to check it works for different inputs | ||
| function toPound(penceString) { |
There was a problem hiding this comment.
Line 4 asks for a function called toPounds. What is your function called?
There was a problem hiding this comment.
yes, my function name was toPound, It should be toPounds.
|
|
||
| // Finally, correct the code to fix the problem | ||
| // =============> write your new code here | ||
| let num = 103; |
There was a problem hiding this comment.
Is num on line 28 used now? Your function uses its own num parameter. If line 28 is not needed, remove it.

Learners, PR Template
Self checklist
Task code
CYF-1053
Changelist
I complete course work sprint 3