-
-
Notifications
You must be signed in to change notification settings - Fork 193
London | May-2025 | Khilola_Rustamova | Module Structuring and Testing Data | Sprint 2 #631
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
base: main
Are you sure you want to change the base?
London | May-2025 | Khilola_Rustamova | Module Structuring and Testing Data | Sprint 2 #631
Conversation
Sprint-2/1-key-errors/2.js
Outdated
|
||
function square(3) { | ||
return num * num; | ||
} | ||
|
||
// =============> write the error message here | ||
Function square(3) |
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.
Can you review again the error message?
Sprint-2/1-key-errors/2.js
Outdated
function square(num) | ||
return num*num |
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.
This code will look neater using proper syntax. E.g. space between num*num
and ending the statement with ;
Also, the function is missing curly braces
|
||
|
||
const greating = "Hello there" | ||
console.log (greating.toUpperCase()); | ||
|
||
const heading = "lord of the rings" | ||
console.log(heading.toUpperCase()); |
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.
Can you move this implementation into a function?
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.
Could you review this again?
The idea here is to write tests for various input data and edge cases, as well as to fix any bugs you find.
The test cases are missing.
Sprint-2/1-key-errors/0.js
Outdated
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.
Most of the files are missing Predictions, where it's required for you to write your prediction first.
Learners, PR Template
Self checklist
Changelist
Briefly explain your PR.
Questions
Ask any questions you have for your reviewer.