Skip to content

London | 25-ITP-Sep; | Rawan Almutairi | Sprint 3 | JavaScript exercises - #1644

Open
Rawan0-0 wants to merge 3 commits into
CodeYourFuture:mainfrom
Rawan0-0:sprint-3-m
Open

Rawan0-0 wants to merge 3 commits into
CodeYourFuture:mainfrom
Rawan0-0:sprint-3-m

Conversation

@Rawan0-0

@Rawan0-0 Rawan0-0 commented Oct 8, 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

Task code

CYF-1053

Changelist

Completed exercises

Questions

No questions

@netlify

netlify Bot commented Oct 8, 2026 •

Copy link
Copy Markdown

✅ Deploy Preview for cyf-onboarding-module ready!

Name Link
🔨 Latest commit cb6bae6
🔍 Latest deploy log https://app.netlify.com/projects/cyf-onboarding-module/deploys/6ac94ff12a09190008b2a035
😎 Deploy Preview https://deploy-preview-1644--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.

@github-actions

This comment has been minimized.

@github-actions

This comment has been minimized.

3 similar comments
@github-actions

This comment has been minimized.

@github-actions

This comment has been minimized.

@github-actions

This comment has been minimized.

@Rawan0-0 Rawan0-0 added 📅 Sprint 3 Assigned during Sprint 3 of this module Needs Review Trainee to add when requesting review. PRs without this label will not be reviewed. labels Oct 8, 2026
@jimoholayinka01 jimoholayinka01 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 Oct 8, 2026

function capitalise(str) {
let str = `${str[0].toUpperCase()}${str.slice(1)}`;
str = `${str[0].toUpperCase()}${str.slice(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.

Suggested change
str = `${str[0].toUpperCase()}${str.slice(1)}`;
str = `${str[0].toUpperCase()}${str.slice(1)}`;

Hi I you've done a great work identifying the error. To be more precise,
The real problem here is that str is declared twice: once as the function parameter
once again with let str = ...

// =============> write your new code here
// ===========> write your new code here
function multiply(a, b) {
return (a, b);

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Suggested change
return (a, b);
return (a* b);

I think this is still is still incorrect. It should be return a * b; to be able to perform the multiplication.

@jimoholayinka01

Copy link
Copy Markdown

Thanks for putting in the effort and working through all the exercises. I can see you're trying to understand the errors and debug the code well.

There are a few places that I think needs correction before this is fully complete as I will show you below

3-mandatory-implement/1-bmi.js: the formula is correct, but the function should return a string rounded to 1 decimal place.
3-mandatory-implement/2-cases.js: this only changes the first space. Make sure it handles the full input correctly.
5-stretch-extend/format-time.js: the tests are too limited. Add more edge cases like 12:00, 00:00, and times with minutes.
Please revise these parts and make sure your explanations match the actual JavaScript error or output. You're close keep going!

@jimoholayinka01 jimoholayinka01 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 Oct 8, 2026
Updated calculateBMI function to return a formatted string with one decimal place.
Updated the capitalise_all_letters function to use replaceAll for replacing spaces with underscores. Added additional console log for testing.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Reviewed Volunteer to add when completing a review with trainee action still to take. 📅 Sprint 3 Assigned during Sprint 3 of this module

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants