Manchester | 26-ITP-May| John Robinson | Sprint 1 | Coursework#1426
Manchester | 26-ITP-May| John Robinson | Sprint 1 | Coursework#1426JohnRob-jnr wants to merge 8 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
| // 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'. | ||
| // |
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?
There was a problem hiding this comment.
Would it be "reassigning"? using the assignment operator
There was a problem hiding this comment.
Reassignment refers to "a variable is assigned a different value", and you are correct that count = count + 1 is an example of reassignment.
The term I had in mind is "increment".
| // 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. |
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'.
|
Hey @cjyuan I have made changes where required & replied in comments. Thanks for reviewing this |
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
1 similar comment
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
1 similar comment
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
|
All good. Well done. |
Self checklist
Changelist
I have made alterations & replied to the questions / comments by reviewer