Skip to content

Birmingham | ITP-May26 | Ogbemi Mene | Sprint 1 | Coursework/sprint1#1415

Open
meneogbemi42-bit wants to merge 21 commits into
CodeYourFuture:mainfrom
meneogbemi42-bit:coursework/sprint1
Open

Birmingham | ITP-May26 | Ogbemi Mene | Sprint 1 | Coursework/sprint1#1415
meneogbemi42-bit wants to merge 21 commits into
CodeYourFuture:mainfrom
meneogbemi42-bit:coursework/sprint1

Conversation

@meneogbemi42-bit

@meneogbemi42-bit meneogbemi42-bit commented Jun 27, 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

Key Exercises (Sprint-1/1-key-exercises/):

Added explanations for variable counting, string initials extraction, file path manipulation, and random number generation
Includes console.log outputs and detailed comments explaining JavaScript concepts
Mandatory Error Fixes (Sprint-1/2-mandatory-errors/):

Fixed and explained const reassignment errors, temporal dead zones, method type errors, and variable naming violations
Provided corrected code examples for each error scenario
Code Interpretation (Sprint-1/3-mandatory-interpret/):

Added comprehensive answers to questions about percentage calculations, time formatting, and currency conversion
Explained expressions like replaceAll(), the modulo operator, and string manipulation methods
Exploration Exercises (Sprint-1/4-stretch-explore/):

Documented browser console functions (alert, prompt)
Explained object notation and the dot operator in JavaScript

@github-actions

This comment has been minimized.

@meneogbemi42-bit meneogbemi42-bit changed the title Birmigham Coursework/sprint1 Birmigham | ITP-May 26Coursework/sprint1 Jun 27, 2026
@github-actions

This comment has been minimized.

@meneogbemi42-bit meneogbemi42-bit changed the title Birmigham | ITP-May 26Coursework/sprint1 Birmingham | ITP-May26 | Ogbemi Mene | Sprint 1 | Coursework/sprint1 Jun 27, 2026
@github-actions

This comment has been minimized.

4 similar comments
@github-actions

This comment has been minimized.

@github-actions

This comment has been minimized.

@github-actions

This comment has been minimized.

@github-actions

This comment has been minimized.

@meneogbemi42-bit meneogbemi42-bit added the 🏕 Priority Mandatory This work is expected label Jun 27, 2026
@meneogbemi42-bit meneogbemi42-bit added the Needs Review Trainee to add when requesting review. PRs without this label will not be reviewed. label Jun 27, 2026
@github-actions

This comment has been minimized.

1 similar comment
@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 27, 2026
@github-actions

This comment has been minimized.

@meneogbemi42-bit meneogbemi42-bit added the Needs Review Trainee to add when requesting review. PRs without this label will not be reviewed. label Jun 27, 2026

@cjyuan cjyuan left a comment

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.

Looks good. Just a two questions.

Comment on lines +9 to +13
//Line 3 is updating the value of the variable `count`.
//The `=` operator is an assignment operator,
//which means it takes the value on the right side (in this case, `count + 1`,
//which evaluates to 1) and assigns it to the variable on the left side (`count`).
//So after this line executes, the value of `count` will be updated from 0 to 1.

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.

Operation like count = count + 1 is very common in programming, and there is a programming term describing such operation.

Could you find out what one-word programming term describes the operation on line 3?

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.

The one-word programming term that describes this operation is increment or incrementing)


The Effect: Calling prompt opens a different type of pop-up dialog box that displays the message "What is your name?", a text input field for the user to type into, and two buttons: "OK" and "Cancel".
What is the return value of `prompt`?
The Return Value: * If you type a name (e.g., "Alex") and click OK, the function returns that exact text as a string (undefind). This string is what gets stored in your myName variable.

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 if a user types a name and then click Cancel instead of OK?

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.

Even if the user types a full name into the text box, clicking Cancel overrides everything and tells the browser to discard the input. The function will completely ignore whatever text was typed and return null.
So, in your code, your variable myName would be assigned the value null.

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.

i did not make any change, i only gave response to the questions

@cjyuan cjyuan 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 Jul 2, 2026
@meneogbemi42-bit meneogbemi42-bit 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 2, 2026
@cjyuan

cjyuan commented Jul 2, 2026

Copy link
Copy Markdown
Contributor

What have you changed? You could just respond in the comment too.

@cjyuan cjyuan 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 Jul 2, 2026
@meneogbemi42-bit meneogbemi42-bit 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 2, 2026
@meneogbemi42-bit

Copy link
Copy Markdown
Author

I did not make any change, i only gave response to the questions

@meneogbemi42-bit meneogbemi42-bit added Needs Review Trainee to add when requesting review. PRs without this label will not be reviewed. and removed Needs Review Trainee to add when requesting review. PRs without this label will not be reviewed. labels Jul 2, 2026
@cjyuan

cjyuan commented Jul 2, 2026

Copy link
Copy Markdown
Contributor

All good.

@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 Jul 2, 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. 🏕 Priority Mandatory This work is expected

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants