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.
abdishakoor-dev
left a comment
There was a problem hiding this comment.
1-key-errors/1.js and 2.js are both fixed, thanks.
Four things before I can mark this Complete:
3-to-pounds.jshas not changed yet. See my reply on line 8.time-format.jsd) and e): see my reply on line 44.- In
1-key-errors, the original code still runs. See my comment on0.jsline 23. - Most of your files still fail Prettier. Prettier is the tool that formats your code to one agreed style. It comes with the CYF extension pack from onboarding. If you're not sure you have it, search for CodeYourFuture Extension Pack in VS Code Extensions: https://marketplace.visualstudio.com/items?itemName=CodeYourFuture.cyf-extension-pack Then open each file you changed, right click, choose Format Document, and pick Prettier if VS Code asks. Do item 3 first. Prettier cannot read
2.jswhilesquare(3)is still live. To format every time you save, follow the steps here: https://github.com/CodeYourFuture/Module-JavaScript-Fundamentals/blob/main/practical_guide.md
Add the Needs Review label again once you've pushed.
|
|
||
| // =============> write your new code here | ||
|
|
||
| function capitalise(str) { |
There was a problem hiding this comment.
Run this file with node. What happens? The original code on lines 11 to 14 still runs. It stops the file with a SyntaxError, so your fix never runs. How can you keep the original in the file but stop it running? 1.js and 2.js have the same problem.
There was a problem hiding this comment.
Commented out code in 0.js, 1.js, and 2.js to stop error throwing.
There was a problem hiding this comment.
Fixed now. All three files run without an error.
|
@abdishakoor-dev I believe I fixed all the issues. Thanks for the feed back. It's much appreciated . |
abdishakoor-dev
left a comment
There was a problem hiding this comment.
Thanks Russom. Items 1 to 3 from my last review are done.
One thing is left before I can mark this Complete. Nine of your Sprint-3 files still fail Prettier. This is the third time I have asked. Last time, Prettier could not read 2.js. Now it can.
Open each file you changed, right click, and choose Format Document. Save and push. To format every time you save, follow the steps here: https://github.com/CodeYourFuture/Module-JavaScript-Fundamentals/blob/main/practical_guide.md
Add the Needs Review label again once you've pushed.
|
@abdishakoor-dev I thought I already had formatted all the code. All is done now. Thanks |
abdishakoor-dev
left a comment
There was a problem hiding this comment.
Thanks Russom. All your files pass Prettier now, and every file runs without an error.
Marking this Complete. Well done.

Learners, PR Template
Self checklist
Task code
CYF-1053
Changelist
Code error fixed, debugged, and refactored as reqiured.