-
-
Notifications
You must be signed in to change notification settings - Fork 218
Glasgow | 25-ITP-SEP | Shreef Ibrahim | Sprint 2 | Coursework #705
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?
Glasgow | 25-ITP-SEP | Shreef Ibrahim | Sprint 2 | Coursework #705
Conversation
Your PR description contained template fields which weren't filled in. Check you've ticked everything in the self checklist, and that any sections which prompt you to fill in an answer are either filled in or removed. |
4 similar comments
Your PR description contained template fields which weren't filled in. Check you've ticked everything in the self checklist, and that any sections which prompt you to fill in an answer are either filled in or removed. |
Your PR description contained template fields which weren't filled in. Check you've ticked everything in the self checklist, and that any sections which prompt you to fill in an answer are either filled in or removed. |
Your PR description contained template fields which weren't filled in. Check you've ticked everything in the self checklist, and that any sections which prompt you to fill in an answer are either filled in or removed. |
Your PR description contained template fields which weren't filled in. Check you've ticked everything in the self checklist, and that any sections which prompt you to fill in an answer are either filled in or removed. |
Your PR description contained template fields which weren't filled in. Check you've ticked everything in the self checklist, and that any sections which prompt you to fill in an answer are either filled in or removed. |
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.
Why not also practice committing files one by one? Making small commits has the following advantages:
- Clarity: Each commit tells a clear story (one feature, one fix, one change).
- Debugging: Easy to find and undo the commit that caused a bug.
- Collaboration: Teammates can review and understand changes faster.
- History: Project log becomes a readable timeline, not a messy dump.
- Safety: Progress is saved in safe, logical steps—less risk of losing work.
If you would like to practice committing files one by one in VSCode, you can select which file to stage and then commit only the staged file.
See: this video (at around the 12:50 mark, it shows how to stage a single file).
If you prefer using the git
command (which most professionals do), the W3School Git Tutorial
is a good place to start.
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.
Why renamed this file?
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.
I renamed by mistake, i have updated to 1-bmi.js
// =============> write your answer here. one time | ||
|
||
// Call formatTimeDisplay with an input of 61, now answer the following: | ||
|
||
// b) What is the value assigned to num when pad is called for the first time? | ||
// =============> write your answer here | ||
// =============> write your answer here .is 60 | ||
|
||
// c) What is the return value of pad is called for the first time? | ||
// =============> write your answer here | ||
// =============> write your answer here is 0 |
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.
These answers are not quite correct, and you missed questions (d) and (e).
In addition, if a value is a string, it is a common practice to enclose the value with a pair of single/double quote characters to emphasize that it is a string.
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.
I have updated
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.
Did you forget to commit your change? I don't notice any new change in this file.
} | ||
return `${time} am`; | ||
|
||
const formattedHour = HoursModefied < 10 ? "0" + HoursModefied : HoursModefied.toString(); |
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.
We could also use .padStart()
.
function toUpperSnakeCase(str){ | ||
let SnakeCaseStr = str.replace(/ /g, "_") | ||
return SnakeCaseStr.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.
-
Indentation is a bit off.
-
It is a common practice to begin variable names with a lowercase letter. Names that start with an uppercase letter are typically reserved for user-defined data types or class names.
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.
It seems the file Sprint-2/4-mandatory-interpret/time-format.js
has not been updated.
Because my changes were in lines that have common, Sorry, can you look again, i committed the changes? |
Everything looks good now. Good job. |
Self checklist
Her is JavaScript challenges tasks covering exercises, error fixing, code interpretation, and a stretch exploration activity.