Manchester | 26-ITP-May| John Robinson | Sprint 1 | Coursework#1426
Open
JohnRob-jnr wants to merge 7 commits into
Open
Manchester | 26-ITP-May| John Robinson | Sprint 1 | Coursework#1426JohnRob-jnr wants to merge 7 commits into
JohnRob-jnr wants to merge 7 commits into
Conversation
…xtraction in initials.js
…variables in paths.js, enhance random.js with detailed explanation, and fix variable declaration issues in mandatory-errors files.
…in percentage-change.js
cjyuan
reviewed
Jul 3, 2026
Comment on lines
+8
to
+11
| // Answer: Line 3 is updating the value of the variable 'count' by adding 1 to its current value. | ||
| // The = operator is used to update / assign a new value to the variable 'count'. | ||
| // It takes the current value of 'count', adds 1 to it, and then assigns that new value back to 'count'. | ||
| // |
Contributor
There was a problem hiding this comment.
Operation like count = count + 1 is very common in programming, and there is a programming term describing such operation.
Could you find out what one-word programming term describes the operation on line 3?
Comment on lines
+1
to
+2
| const TwelveHourClockTime = "8:53 pm"; | ||
| const TwentyFourHourClockTime = "20:53"; |
Contributor
There was a problem hiding this comment.
In JS naming convention, variable names usually begins with a lowercase letter. Names starting with an uppercase letter are used for built-in and custom data types (e.g., Math)
| // A) 5 in total - lines 4, 5, 10 | ||
|
|
||
| // b) Run the code and identify the line where the error is coming from - why is this error occurring? How can you fix this problem? | ||
| // A) Missing comma in line 5 in function .replaceAll which is causing the error. |
Contributor
There was a problem hiding this comment.
We could more precisely describe "A comma is missing between "," and "" in the function call" as:
A comma is missing between the ___________s.
What is this programming term that refers to the values passed to a function? It begins with an 'a'.
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.
Self checklist
Changelist
I have completed the coursework for sprint 1.