Skip to content

London | 26-ITP-May | Bisrat Tesfay| Sprint 1 | Coursework #1383

Open
B3-Bisrat wants to merge 5 commits into
CodeYourFuture:mainfrom
B3-Bisrat:coursework/sprint-1
Open

London | 26-ITP-May | Bisrat Tesfay| Sprint 1 | Coursework #1383
B3-Bisrat wants to merge 5 commits into
CodeYourFuture:mainfrom
B3-Bisrat:coursework/sprint-1

Conversation

@B3-Bisrat

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

I have completed all the coursework/sprint one tasks.

Questions

@github-actions

This comment has been minimized.

@B3-Bisrat B3-Bisrat added the Needs Review Trainee to add when requesting review. PRs without this label will not be reviewed. label Jun 22, 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 Jun 22, 2026
@B3-Bisrat B3-Bisrat changed the title London | 26-ITP-May | Bisrat Tesfay| Coursework Sprint 1 London | 26-ITP-May | Bisrat Tesfay| Sprint 1 | Coursework Jun 22, 2026
@B3-Bisrat B3-Bisrat added the Needs Review Trainee to add when requesting review. PRs without this label will not be reviewed. label Jun 22, 2026
@Joshuafolorunsho Joshuafolorunsho added the Review in progress This review is currently being reviewed. This label will be replaced by "Reviewed" soon. label Jun 27, 2026

@Joshuafolorunsho Joshuafolorunsho 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.

Lovely work over all.
Clear answers, good use of console.log to check your values.
Just a couple of small things to mull over.

Comment on lines +7 to +13
// num creates a random whole number between 1-100 (inclusive).
// Try breaking down the expression and using documentation to explain what it means
//maximum-minimum+1 gives us the number of possible values (100-1+1 = 100)
//Math.random() gives us a random decimal number between 0 (inclusive) and 1 (exclusive)
//Multiplying Math.random() by 100 gives us a random decimal number between 0 and 100 (exclusive)
//Math.floor() rounds down the random decimal number to the nearest whole number.
//Adding minimum to the result gives us a random whole number between minimum and maximum (inclusive)

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

I really like how you explained this bit.

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

const 24hourClockTime = "20:53";
const twelveHourClockTime = "8:53pm";
const twentyFourHourClockTime = "20:53";
//variables can't start with a number. To fix this, we need to change the variable name to something that starts with a letter or an underscore.

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Brilliant! Just out of curiosity, If you start with a dollar sign ($), would this error out as well?

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.

No, in JavaScript variables can start with sign ($). I didn't know about this, thank you for letting me find out.

// Line 4 and line 5 are variable reassignment statements. In line 4, carPrice is being reassigned with the new value after removing the comma and converting it to a number. In line 5, priceAfterOneYear is being reassigned in the same way.

// d) Identify all the lines that are variable declarations
// Line 1 and line 2 are variable declarations. In line 1, carPrice is declared and initialized with the string value "10,000". In line 2, priceAfterOneYear is declared and initialized with the string value "8,543".

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 answer for lines 1 and 2, but have another scan through the whole file: are there any other lines that also declare a new variable with const or let?

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.

Sorry, line 7 and 8 as well.

Comment thread Sprint-1/4-stretch-explore/objects.md Outdated
Comment on lines 7 to 8

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

You might have missed this question.

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.

It is done now, thank you.

Comment thread Sprint-1/4-stretch-explore/objects.md Outdated
Comment on lines 9 to 10

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

You might have missed this question.

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.

It is done now, thank you

@Joshuafolorunsho Joshuafolorunsho 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 Jun 27, 2026
@B3-Bisrat B3-Bisrat removed the Reviewed Volunteer to add when completing a review with trainee action still to take. label Jun 29, 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 Jun 29, 2026
@Joshuafolorunsho

Joshuafolorunsho commented Jun 30, 2026

Copy link
Copy Markdown

The changed files in this PR don't match what is expected for this task.

Please check that you committed the right files for the task, and that there are no accidentally committed files from other sprints.

Please review the changed files tab at the top of the page, we are only expecting changes in this directory: ^Sprint-1/

If this PR is not coursework, please add the NotCoursework label (and message on Slack in #cyf-curriculum or it will probably not be noticed).

If this PR needs reviewed, please add the 'Needs Review' label to this PR after you have resolved the issues listed above.

Hi @B3-Bisrat,

Could you please fix the problem here so I can re-review?

Thank you.

@B3-Bisrat B3-Bisrat force-pushed the coursework/sprint-1 branch from aab0047 to fa849fa Compare June 30, 2026 19:24
@B3-Bisrat B3-Bisrat added the Needs Review Trainee to add when requesting review. PRs without this label will not be reviewed. label Jun 30, 2026
@Joshuafolorunsho

Copy link
Copy Markdown

Well done @B3-Bisrat !

@Joshuafolorunsho Joshuafolorunsho added Complete Volunteer to add when work is complete and all review comments have been addressed. and removed Needs Review Trainee to add when requesting review. PRs without this label will not be reviewed. labels Jul 1, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Complete Volunteer to add when work is complete and all review comments have been addressed.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants