-
-
Notifications
You must be signed in to change notification settings - Fork 36
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Manchester | Zabihollah Namazi | Module-Data-Flows | Challenges | unit-testing | katas-tdd #122
base: main
Are you sure you want to change the base?
Conversation
} | ||
} | ||
|
||
return sum; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Overall looks good. Please, mind code formatting and spacing:
Bad:
){
if(
else{
=listNumber
Good:
) {
if {
else {
= listNumber
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
thanks
} | ||
|
||
myData = await response.json() | ||
//console.log(`${JSON.stringify(myData)} this is api`) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please, remove commented out code from your final work.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
removed
throw new Error(`HTTP error! Status: ${response.status}`); | ||
} | ||
|
||
myData = await response.json() |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Don't forget to add ;
at the end of your expressions. JS allows to omit them, but this can lead to unexpected errors/results.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
added
Changelist
Briefly explain your PR.
Questions
Ask any questions you have for your reviewer.