London | 26-ITP-January | Eugenie Ahangama | Sprint 2 | coursework/sprint 2#931
Open
Eugenie-A wants to merge 10 commits intoCodeYourFuture:mainfrom
Open
London | 26-ITP-January | Eugenie Ahangama | Sprint 2 | coursework/sprint 2#931Eugenie-A wants to merge 10 commits intoCodeYourFuture:mainfrom
Eugenie-A wants to merge 10 commits intoCodeYourFuture:mainfrom
Conversation
… verified correct output
…added explanation
…s to verify output
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Learners, PR Template
Self checklist
Changelist
I worked through the Sprint 2 exercises by going through the starter code, identifying the main errors and making sure I understood why the logic wasn't working. I then wrote tests in the debug section to clearly show the issues before fixing anything. After that, I implemented the correct JavaScript behaviour so the function produced the right results. Finally, in the interpret task, I explained what the original code was doing, why it failed and how my fixes solved those problems.
MDN References I used:
String.prototype.slice()
Number() constructor
Template literals
console.assert()
String.prototype.split()
Array.prototype.map()
Remainder operator (%)
String.prototype.padStart()
String.prototype.substring()
String.prototype.replace()
String.prototype.trim()
String.prototype.toUpperCase()
Function parameters
Return
Questions
What's the best way to structure a debugging process?