Skip to content

London | 26-ITP-Jan | Alex Okorefe| Sprint 2 | Coursework#1107

Open
Alex-Os-Dev-Lab wants to merge 12 commits intoCodeYourFuture:mainfrom
Alex-Os-Dev-Lab:coursework/Sprint-2
Open

London | 26-ITP-Jan | Alex Okorefe| Sprint 2 | Coursework#1107
Alex-Os-Dev-Lab wants to merge 12 commits intoCodeYourFuture:mainfrom
Alex-Os-Dev-Lab:coursework/Sprint-2

Conversation

@Alex-Os-Dev-Lab
Copy link

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

Made necessary changes to all files associated with Sprint 2 in order to complete assignments.

Questions

No questions at this stage

@Alex-Os-Dev-Lab Alex-Os-Dev-Lab added the Needs Review Trainee to add when requesting review. PRs without this label will not be reviewed. label Feb 28, 2026
@JaypeeLan JaypeeLan 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 Mar 1, 2026

// Why will an error occur when this program runs?
// =============> write your prediction here
// =============> It will likely be a reference error because the variable decimalNumber is not defined in the global scope

Choose a reason for hiding this comment

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

Good try. Try the prediction again.
Tip: this is the problem
const decimalNumber = 0.5;
Try to find out why. If you understand this, you would correctly give the correct code.

Copy link
Author

Choose a reason for hiding this comment

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

Thanks for flagging I realised that because the program will start with the console.log statement and look for the decimalNumber variable. We are going to get a syntax error before we get to anything else.

I have updated the code and comments to reflect. Let me know if there are any further issues; or if I can resubmit the PR for review.

Thanks

@JaypeeLan JaypeeLan 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 Mar 1, 2026
Updated the explanation for the error and corrected the function declaration to avoid syntax errors.
@Alex-Os-Dev-Lab Alex-Os-Dev-Lab 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 Mar 9, 2026
@JaypeeLan
Copy link

JaypeeLan commented Mar 9, 2026

It says your branch has conflicts. Can you review that? @Alex-Os-Dev-Lab

@kfklein15 kfklein15 requested a review from JaypeeLan March 12, 2026 12:04
@JaypeeLan JaypeeLan added Review in progress This review is currently being reviewed. This label will be replaced by "Reviewed" soon. 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. Review in progress This review is currently being reviewed. This label will be replaced by "Reviewed" soon. labels Mar 12, 2026
@Alex-Os-Dev-Lab
Copy link
Author

It says your branch has conflicts. Can you review that? @Alex-Os-Dev-Lab

Hi JaypeeLan

I believe I have resolved this issue now. Are you able to mark as complete please.

That said if there are any issues please let me know

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