Skip to content

Glasgow | 26-ITP-May | Christelle Boten | Sprint 1 | Coursework#1514

Open
Christelle-b wants to merge 14 commits into
CodeYourFuture:mainfrom
Christelle-b:coursework/sprint-1
Open

Glasgow | 26-ITP-May | Christelle Boten | Sprint 1 | Coursework#1514
Christelle-b wants to merge 14 commits into
CodeYourFuture:mainfrom
Christelle-b:coursework/sprint-1

Conversation

@Christelle-b

@Christelle-b Christelle-b commented Jul 15, 2026

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 did all the the exercises requested.

Questions

@github-actions

This comment has been minimized.

@Christelle-b Christelle-b added the Needs Review Trainee to add when requesting review. PRs without this label will not be reviewed. label Jul 15, 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 15, 2026
@github-actions

This comment has been minimized.

3 similar comments
@github-actions

This comment has been minimized.

@github-actions

This comment has been minimized.

@github-actions

This comment has been minimized.

@Christelle-b Christelle-b changed the title Glasgow | 26-ITP-May | Christelle Boten | Sprint 1 Glasgow | 26-ITP-May | Christelle Boten | Sprint 1 | Coursework Jul 15, 2026
@Christelle-b Christelle-b added the Needs Review Trainee to add when requesting review. PRs without this label will not be reviewed. label Jul 15, 2026
@hey-hammad hey-hammad 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 16, 2026
Comment thread Sprint-1/1-key-exercises/4-random.js Outdated

console.log(num);

// Here, Math.random creates a random number between 0 to 1 and Math.floor rounds down to the nearest integer.

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Try breaking the expression down further and explain the rationale behind each part, especially why we use maximum - minimum + 1 and add minimum at the end. The goal is to explain the logic, not just the outcome.

// Read the code and then answer the questions below

// a) How many function calls are there in this file? Write down all the lines where a function call is made
//There are two function calls here. replaceAll and console.log

@hey-hammad hey-hammad Jul 16, 2026

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

There are more than 2 function calls here, please revisit the documentation/course to review function declarations.

//Line 1, line 2, line 7 and line 8 have variable declarations

// e) Describe what the expression Number(carPrice.replaceAll(",","")) is doing - what is the purpose of this expression?
//This expression removes the comma in the price from 10,000 to 10000

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

please mention the purpose of this expression as well.

// The variable result shows the total remaining duration of a movie in terms of hours, minutes and seconds. We can also call it remainingTime.

// f) Try experimenting with different values of movieLength. Will this code work for all values of movieLength? Explain your answer
// The movieLength code will work work with all kinds of number. That is integers and floats. It will not work with strings No newline at end of file

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

try testing different edge cases and be more specific about what happens with different types of values (e.g. decimals, negative numbers, or unexpected inputs)

@hey-hammad hey-hammad 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 16, 2026
@Christelle-b Christelle-b added Needs Review Trainee to add when requesting review. PRs without this label will not be reviewed. and removed Reviewed Volunteer to add when completing a review with trainee action still to take. labels Jul 17, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Needs Review Trainee to add when requesting review. PRs without this label will not be reviewed.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants