Skip to content

London | 26-ITP-May | Jorvan White | Sprint 1 | Coursework - #1483

Open
JorvanW wants to merge 15 commits into
CodeYourFuture:mainfrom
JorvanW:coursework/sprint-1
Open

London | 26-ITP-May | Jorvan White | Sprint 1 | Coursework#1483
JorvanW wants to merge 15 commits into
CodeYourFuture:mainfrom
JorvanW:coursework/sprint-1

Conversation

@JorvanW

@JorvanW JorvanW commented Jul 8, 2026

Copy link
Copy Markdown

Learners, PR Template

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

This Pull request is for Sprint 1 for Module Structuring and Comparing Data. I have completed all task to my capabilities and is submitting for review.

@JorvanW JorvanW added the Needs Review Trainee to add when requesting review. PRs without this label will not be reviewed. label Jul 8, 2026
@github-actions

This comment has been minimized.

@github-actions github-actions Bot removed the Needs Review Trainee to add when requesting review. PRs without this label will not be reviewed. label Jul 8, 2026
@github-actions

This comment has been minimized.

@JorvanW JorvanW added the Needs Review Trainee to add when requesting review. PRs without this label will not be reviewed. label Jul 26, 2026
@cjyuan cjyuan added Review in progress This review is currently being reviewed. This label will be replaced by "Reviewed" soon. and removed Needs Review Trainee to add when requesting review. PRs without this label will not be reviewed. labels Jul 27, 2026
Comment on lines -4 to +6
console.log(`I was born in ${cityOfBirth}`);
const cityOfBirth = "Bolton";
console.log(`I was born in ${cityofBirth}`);
const cityofBirth = "Bolton";
//Spelling Error - cityofBirth is misspelled as cityOfBirth in the console.log statement. No newline at end of file

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.

The error is not caused by any misspelled identifier. The updated code has the same error as the original code.

Comment on lines -1 to 2
const cardNumber = 4533787178994213;
const cardNumber = "4533787178994213";
const last4Digits = cardNumber.slice(-4);

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.

Suppose you were not allowed to modify the statement const cardNumber = 4533787178994213;
(that is, keep the variable's value unchanged).
How would you modify the code (through type conversion) to still being able to use .slice(-4) to extract the last 4 digits from the given number.

Comment on lines 17 to +18
// 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?
//Line 5 Column 60 was missing a ',' to separate the fuction.

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.

The error occurred because a comma was missing between the a___________s.
What is the programming term that belongs in the blank?

// The expression is an Assignment operator that assigns its right hand side value and equation to the variable on the left hand side.

// e) What do you think the variable result represents? Can you think of a better name for this variable?
// The variable result represents the total hours,minutes and seconds of the movie. A better name for this could be runtime or duration.

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.

Both runtime and duration does not quite indicate the value stored in the variable
is a formatted string in the form "2:12:02".

Could you suggest a more descriptive name?

What effect does calling the `prompt` function have?
What is the return value of `prompt`?
What effect does calling the `prompt` function have? It gives you a prompt window to input a value
What is the return value of `prompt`? A string/text containing my name

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.

What does the function return when a user clicks "Cancel" instead of "OK"?

@cjyuan cjyuan added Reviewed Volunteer to add when completing a review with trainee action still to take. and removed Review in progress This review is currently being reviewed. This label will be replaced by "Reviewed" soon. labels Jul 27, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Reviewed Volunteer to add when completing a review with trainee action still to take.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants