Skip to content

Manchester | May-2026-ITP | Monsur Abdulrahman | Sprint 1 | Coursework Exercises#1334

Open
Monsur0001 wants to merge 16 commits into
CodeYourFuture:mainfrom
Monsur0001:coursework/sprint-1
Open

Manchester | May-2026-ITP | Monsur Abdulrahman | Sprint 1 | Coursework Exercises#1334
Monsur0001 wants to merge 16 commits into
CodeYourFuture:mainfrom
Monsur0001:coursework/sprint-1

Conversation

@Monsur0001

Copy link
Copy Markdown

Learners, PR Template

Self checklist

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

Changelist

I have done all the required tasks in Sprint 1

@Monsur0001 Monsur0001 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 13, 2026

@LonMcGregor LonMcGregor left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Good work, some changes needed, see my comments.

Good work doing the stretch tasks!

// It will help to think about the order in which expressions are evaluated
// Try logging the value of num and running the program several times to build an idea of what the program is doing

console.log(num);

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Good break down of the individual steps. Can you give a short explanation of what the script does overall?

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

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

Thank you so much for taking time to review my work. Below is the explanation of what the script does as requested.

The script generates a random whole number between 1 and 100, and then stores it in the variable num. It uses Math.random() to produce a random decimal number, make it to the desired range and converts it into a whole number with Math.floor(), and adjusts the results so that the minimum value is 1 and the maximum is 100. Each time the program runs, a different number is likely to be generated

2. Number(carPrice.replaceAll(",", ""))
3. priceAfterOneYear.replaceAll("," "")
4. Number(priceAfterOneYear.replaceAll("," ""))

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Good work finding these, I think there is one more function call to find

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

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

Thank you for taking time to review my work, I appreciate that.

I later found out the there is one function call i didnt include which is "console.log"

Thank you so much

@LonMcGregor LonMcGregor 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 Jun 19, 2026
@Monsur0001

Copy link
Copy Markdown
Author

I addressed the issue raised by the reviewer

@Monsur0001 Monsur0001 added the Needs Review Trainee to add when requesting review. PRs without this label will not be reviewed. label Jul 10, 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. Needs Review Trainee to add when requesting review. PRs without this label will not be reviewed. 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