Skip to content

Manchester | 26-ITP-May| John Robinson | Sprint 1 | Coursework#1426

Open
JohnRob-jnr wants to merge 7 commits into
CodeYourFuture:mainfrom
JohnRob-jnr:Sprint-1
Open

Manchester | 26-ITP-May| John Robinson | Sprint 1 | Coursework#1426
JohnRob-jnr wants to merge 7 commits into
CodeYourFuture:mainfrom
JohnRob-jnr:Sprint-1

Conversation

@JohnRob-jnr

Copy link
Copy Markdown

Self checklist

  • I have titled my PR with Region | Cohort | FirstName LastName | Sprint | Assignment Title
  • My changes meet the requirements of the task
  • I have tested my changes
  • My changes follow the style guide

Changelist

I have completed the coursework for sprint 1.

@JohnRob-jnr JohnRob-jnr added 📅 Sprint 1 Assigned during Sprint 1 of this module Needs Review Trainee to add when requesting review. PRs without this label will not be reviewed. Module-Structuring-And-Testing-Data The name of the module. labels Jun 29, 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'.
//

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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";

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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'.

@cjyuan cjyuan added Reviewed Volunteer to add when completing a review with trainee action still to take. and removed Needs Review Trainee to add when requesting review. PRs without this label will not be reviewed. labels Jul 3, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Module-Structuring-And-Testing-Data The name of the module. Reviewed Volunteer to add when completing a review with trainee action still to take. 📅 Sprint 1 Assigned during Sprint 1 of this module

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants