-
-
Notifications
You must be signed in to change notification settings - Fork 240
NW | 25-ITP-Sep | TzeMing Ho | Sprint 2 | coursework/sprint-2 #707
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?
Conversation
…ixed the conflict with a new variable name
…wer case to upper case and replace all space with underline
…toPounds with input condition checks
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.
Looking really good - one small question, but will mark as complete 🙂
| function capitalise(str) { | ||
| let capitalisedStr = `${str[0].toUpperCase()}${str.slice(1)}`; | ||
| return capitalisedStr; | ||
| } |
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 works as expected - but do we need a variable here?
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.
No. We could simply return ${str[0].toUpperCase()}${str.slice(1)}
The variable is not necessarily needed.
Learners, PR Template
Self checklist
Changelist
I have attempted to resolve the errors and created functions and tests for the exercises.