London | 26-ITP-Sep | Ebrahim Moqbel | Sprint 3 | coursework CYF-1053 - #1468
Ebrahim-Moqbel wants to merge 27 commits into
Conversation
… shirt color and changed th name to match the ID attribute.
✅ 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.
2 similar comments
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.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
Clarified explanation of the syntax error in the comments.
abdishakoor-dev
left a comment
There was a problem hiding this comment.
selyafi left ten comments on this on 17 September, and they are all still open. The label was left on Needs Review afterwards, so it may not have been obvious that a review had come in.
Have a read through his comments, push your changes, then add the Needs Review label again. I am setting this to Reviewed for now so it is not sitting in the queue as though nobody has looked at it.
Two more while you are in there:
-
Prettier on your Sprint 3 files, same as on your Sprint 2 PR. Nine of the ten fail the check at the moment.
-
1-key-errors/2.jsline 17, see my comment.
Add the Needs Review label again when you have pushed.
abdishakoor-dev
left a comment
There was a problem hiding this comment.
Good progress, most of selyafi's list is done. Five things still open:
1-bmi.js: it returns a string now, but trycalculateBMI(81, 1.8). See line 19.1-key-errors/2.jsline 17: the sentence aboutnumis still in the file. You explained it back to me correctly in the thread, it just needs deleting.3-to-pounds.jsline 1: selyafi asked you to put the original task line back and it is still the changed version.time-format.jsline 40: your explanation underneath is right but the answer on the line above still says 1.- Prettier: nine of the ten files still fail. Same as on your Sprint 2 PR, so worth turning on format on save rather than doing it by hand each time.
Add the Needs Review label again once you have pushed.
| function calculateBMI(weight, height) { | ||
| // return the BMI of someone based off their weight and height | ||
| let result = (weight/(height*height)); | ||
| result= Number(result.toFixed(1)); |
There was a problem hiding this comment.
Run calculateBMI(81, 1.8). The task asks for a string to one decimal place, and you get "25". What does Number(...) do to "25.0" before String(...) ever sees it? toFixed(1) already hands you a string.
| @@ -1,6 +1,27 @@ | |||
| // In Sprint-1, there is a program written in 3-mandatory-interpret/3-to-pounds.js | |||
| // In Sprint-1, there is a program written in interpret/to-pounds.js | |||
There was a problem hiding this comment.
Still the edited version. The original line is // In Sprint-1, there is a program written in 3-mandatory-interpret/3-to-pounds.js.
|
|
||
| // e) What is the return value of pad when it is called for the last time in this program? Explain your answer | ||
| // =============> write your answer here | ||
| // =============> 1 |
There was a problem hiding this comment.
What does pad(1) hand back, and what type is it? Your sentence underneath gets there, this line should match it.
|
|
||
| console.log(`The result of multiplying 10 and 32 is ${multiply(10, 32)}`); | ||
|
|
||
| console.log(multiply(10,32)) No newline at end of file |
There was a problem hiding this comment.
Leftover from testing, this one can go. Not a blocker.

Learners, PR Template
Self checklist
Task code
CYF-1053
Changelist
completed all the requirements and specifications for sprint 3 files
Questions
N/A