Skip to content

London | 26-Sep-ITP| Frumentius Tesfay | Sprint 2 | Coursework - #1541

Open
Frumentius-Rev wants to merge 20 commits into
CodeYourFuture:mainfrom
Frumentius-Rev:coursework/sprint-2
Open

Frumentius-Rev wants to merge 20 commits into
CodeYourFuture:mainfrom
Frumentius-Rev:coursework/sprint-2

Conversation

@Frumentius-Rev

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

Changelist

I have demonstrated and completed the Sprint 2 requirements.

@netlify

netlify Bot commented Sep 18, 2026

Copy link
Copy Markdown

Deploy Preview for cyf-onboarding-module ready!

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

@Frumentius-Rev Frumentius-Rev added the Needs Review Trainee to add when requesting review. PRs without this label will not be reviewed. label Sep 18, 2026
@Frumentius-Rev Frumentius-Rev changed the title London | 26-Sep-ITP| Frumentius Tesfay | Sprint 1 | Coursework London | 26-Sep-ITP| Frumentius Tesfay | Sprint 2 | Coursework Sep 18, 2026

@abdishakoor-dev abdishakoor-dev 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.

This is a strong submission. 2-mandatory-errors/3.js is exactly what that section asks for, and all five answers in 1-percentage-change.js are right.

A few things before I can mark it Complete:

  1. 2-mandatory-errors/1.js and 2.js both still stop with an error when you run them. See my comment on each.

  2. 1-key-exercises/4-random.js, see my comment.

  3. 3-mandatory-interpret/2-time-format.js line 1 has been changed from the original, see my comment.

  4. 3-mandatory-interpret/2-time-format.js answer f, see my comment.

  5. Could you run Prettier over the Sprint-2 folder? None of the files are formatted at the moment.

Add the Needs Review label again when you have pushed.

@@ -2,3 +2,6 @@

const age = 33;
age = age + 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.

Your explanation is right. Run the file though. It still stops with the same error, because line 3 is still const. This section wants the code fixed as well as explained. One more thing: TypeError is the name of the error. What is the rest of the message node prints after it?

@@ -3,3 +3,6 @@

console.log(`I was born in ${cityOfBirth}`);
const cityOfBirth = "Bolton";

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.

The error and the reason are both right, and you have the full message this time. The file still stops when you run it though. What would you move, so that line 4 prints "I was born in Bolton"?

Comment thread Sprint-2/1-key-exercises/4-random.js Outdated
// 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

//num represents a random whole number between 1 and 100. No newline at end of file

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.

This is the right answer. The exercise also asks you to break the expression down. What does Math.random() give you on its own? What does multiplying it by 100 do? And what does Math.floor do to that result which Math.round would not?

@@ -1,4 +1,4 @@
const movieLength = 8784; // length of movie in seconds
const movieLength = 8788; // length of movie in seconds

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.

This was 8784 in the original. Trying another value is the right instinct, but put the original back. The program you are explaining should be the one you were given.

// Maybe a more descriptive movieTime or movieDuration

// f) Try experimenting with different values of movieLength. Will this code work for all values of movieLength? Explain your answer
// f) The code works for different whole-number values of movieLength

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.

This says which values it works for. The question also asks whether it works for all values. Try 59, then -60, then 90.5. What does each one print, and would you show a time that way?

@abdishakoor-dev abdishakoor-dev 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 Sep 19, 2026
@abdishakoor-dev

Copy link
Copy Markdown
Contributor

Ignore point 3 on my review, about putting movieLength back to 8784. Question f) asks you to try different values, so changing that line is what it wants. Everything else on the list still stands.

@Frumentius-Rev Frumentius-Rev added the Needs Review Trainee to add when requesting review. PRs without this label will not be reviewed. label Sep 20, 2026
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. Reviewed Volunteer to add when completing a review with trainee action still to take.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants