Skip to content

London | 26-ITP-Jan | Abdul Moiz | Sprint 1 | Sprint-1#909

Open
A-Moiz wants to merge 7 commits intoCodeYourFuture:mainfrom
A-Moiz:coursework/sprint-1
Open

London | 26-ITP-Jan | Abdul Moiz | Sprint 1 | Sprint-1#909
A-Moiz wants to merge 7 commits intoCodeYourFuture:mainfrom
A-Moiz:coursework/sprint-1

Conversation

@A-Moiz
Copy link

@A-Moiz A-Moiz commented Jan 24, 2026

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

Added comments and answered the questions in Sprint 1 directory of this Repo

Questions

N/A

@A-Moiz A-Moiz added the Needs Review Trainee to add when requesting review. PRs without this label will not be reviewed. label Jan 24, 2026
@jenny-alexander jenny-alexander self-requested a review February 10, 2026 02:43
@jenny-alexander jenny-alexander 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 Feb 10, 2026
Copy link

@jenny-alexander jenny-alexander left a comment

Choose a reason for hiding this comment

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

Hi @A-Moiz Good job demonstrating comprehension of these programming fundamentals. I left a few comments/questions for you to review.

// 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

// Math.random() generates a random decimal number between 0 and 1.

Choose a reason for hiding this comment

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

Can you be more specific here about what Math.random() returns? Does it include 0 and 1? See if you can use the words 'inclusive' and 'exclusive' in your explanation.

Copy link
Author

Choose a reason for hiding this comment

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

0 ≤ x < 1
x is more than or equal to 0 (inclusive) but less than 1 (exclusive)

// Line 1 is a variable declaration, creating the count variable with an initial value of 0
// Describe what line 3 is doing, in particular focus on what = is doing

// Line 3 is updating the value of the count variable by adding 1 to its current value

Choose a reason for hiding this comment

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

Yes, what you wrote is correct. + 1 is a common programming pattern that has a specific name to it. Can you research a bit and tell me what that is?

Copy link
Author

Choose a reason for hiding this comment

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

Incrementing

// 6 variable declarations.

// b) How many function calls are there?
// 0 function calls.

Choose a reason for hiding this comment

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

There is 1 function call. Can you try to find it?

Copy link
Author

Choose a reason for hiding this comment

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

Yes I found it, it was console.log(result)

@jenny-alexander jenny-alexander 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 Feb 10, 2026
@A-Moiz A-Moiz 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 Feb 14, 2026
@cjyuan
Copy link
Contributor

cjyuan commented Feb 14, 2026

All comments were well addressed. Good job!

Note: Jennifer is not available these few days, so I am here to help check the changes.

@cjyuan cjyuan 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 Feb 14, 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.

3 participants