Skip to content

London | 26-ITP-Sep | Abakar Souleyman | Sprint 2 | Coursework - #1530

Open
abmhts wants to merge 19 commits into
CodeYourFuture:mainfrom
abmhts:coursework/sprint-2
Open

abmhts wants to merge 19 commits into
CodeYourFuture:mainfrom
abmhts:coursework/sprint-2

Conversation

@abmhts

@abmhts abmhts commented Sep 17, 2026

Copy link
Copy Markdown

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

Task code

CYF-1039

Changelist

Completed JavaScript fundamental tasks covering variables, assignment operators, strings, numbers, calculations, random numbers, time conversions, and objects. Also completed Chrome Console exercises.

@netlify

netlify Bot commented Sep 17, 2026

Copy link
Copy Markdown

Deploy Preview for cyf-onboarding-module ready!

Name Link
🔨 Latest commit cc7acf9
🔍 Latest deploy log https://app.netlify.com/projects/cyf-onboarding-module/deploys/6aac5a962de6260008f42d25
😎 Deploy Preview https://deploy-preview-1530--cyf-onboarding-module.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.
Lighthouse
Lighthouse
2 paths audited
Performance: 100 (no change from production)
Accessibility: 100 (no change from production)
Best Practices: 100 (no change from production)
SEO: 86 (no change from production)
PWA: -
View the detailed breakdown and full score reports
🤖 Make changes Run an agent on this branch

To edit notification comments on pull requests, go to your Netlify project configuration.

@abmhts abmhts added the Needs Review Trainee to add when requesting review. PRs without this label will not be reviewed. label Sep 17, 2026
Comment thread Sprint-2/1-key-exercises/2-initials.js Outdated
// This should produce the string "CKJ", but you must not write the characters C, K, or J in the code of your solution.

const initials = ``;
const initials = firstName.charAt(0) + middleName.charAt(0) + lastName.charAt(0)

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Add a semicolon at the end of this line

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, added a semicolon at the end.

Comment thread Sprint-2/1-key-exercises/4-random.js Outdated
//num represents a randomly generated whole number between 1 and 100.

// Try breaking down the expression and using documentation to explain what it means
// Math.random() generates a random decimal number greater than or equal to 0 and less than 1. Multiplying it by 100 gives a number between 0 and 100.

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

It gives us maximum 100 ?

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.

Gives a number between 0 and up to, but not including 100.
Thank you

Comment thread Sprint-2/1-key-exercises/4-random.js Outdated
// Math.random() generates a random decimal number greater than or equal to 0 and less than 1. Multiplying it by 100 gives a number between 0 and 100.
// Math.floor() always rounds down and returns the largest integer less than or equal to a given number in this case between 0 and 99. Finally, adding 1 changes the range to 1–100.
// Math.floor(Math.random() * (maximum - minimum + 1))
// Math.floor(Math.random() * (100 - 1 + 1)

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

A closing bracket is missing in this line

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.

Added the missing closing bracket.
Thank you

const age = 33;
age = age + 1;

let age = 33;

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

This file does not run, check age declaration

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.

Corrected. Thank you

Comment thread Sprint-2/2-mandatory-errors/3.js Outdated
@@ -1,9 +1,15 @@
const cardNumber = 4533787178994213;

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

This file does not run. Check cardNumber and last4Digits declaration

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.

Corrected. Thank you!

Comment thread Sprint-2/2-mandatory-errors/4.js Outdated
@@ -1,2 +1,5 @@
const 12HourClockTime = "8:53pm";

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

This file does not run. Check variable declaration

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.

Corrected. Thank you.

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