Skip to content

Module-Structuring-and-Testing-Data | Sprint-1 #528

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 31 commits into
base: main
Choose a base branch
from

Conversation

nurzatpro
Copy link
Member

@nurzatpro nurzatpro commented Jun 12, 2025

Learners, PR Template

Self checklist

  • I have committed my files one by one, on purpose, and for a reason
  • I have titled my PR with REGION | COHORT_NAME | FIRST_NAME LAST_NAME | PROJ_NAME
  • I have tested my changes
  • My changes follow the style guide
  • My changes meet the requirements of this task

Changelist

Briefly explain your PR.

Questions

Ask any questions you have for your reviewer.

@nurzatpro nurzatpro added the Needs Review Participant to add when requesting review label Jun 12, 2025
@nurzatpro nurzatpro added the 📅 Sprint 1 Assigned during Sprint 1 of this module label Jun 28, 2025
@LonMcGregor LonMcGregor added Review in progress This review is currently being reviewed. This label will be replaced by "Reviewed" soon. and removed Needs Review Participant to add when requesting review labels Jul 3, 2025
Copy link

@LonMcGregor LonMcGregor left a comment

Choose a reason for hiding this comment

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

You've made some good progress solving all of this. I've left a few questions throughout the comments made in this pull request, if you could please take a look and answer them.

When making a pull request please try to keep them specific to what you're implementing. In an organisation this might be one specific feature. Here we are looking for one sprint at a time, and you've submitted two at once here.

Also, make sure you understand what the template in the pull request is asking - you ticked the box to say you followed the title format, but it's missing your name and region. And some of the code does not run.

Good work, but a few things still to work on.

@@ -20,4 +20,11 @@ console.log(`The base part of ${filePath} is ${base}`);
const dir = ;
const ext = ;

Choose a reason for hiding this comment

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

Be careful about reassigning variables - you've reused the dir and ext constants here

Choose a reason for hiding this comment

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

can you explain the change you made here?

Choose a reason for hiding this comment

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

You don't need to commit this file - do you remember how you can use .gitignore?

Choose a reason for hiding this comment

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

Good answer, I think you mixed up question d) with e) and are missing an answer. Could you identify the variable declarations?

Choose a reason for hiding this comment

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

Good answers here

@@ -5,16 +5,28 @@

// =============> write your prediction of the error here

//we will get an error bcs the parameter of the function need to string type not number so it can be something like num

Choose a reason for hiding this comment

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

Could you explain what you mean by the parameter needing to be a string type?

Choose a reason for hiding this comment

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

good explanation

squareHeight =height * height;
bmi = weight / squareHeight;
return bmi.0toFixed(1);

Choose a reason for hiding this comment

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

I think there is a typo in this function, can you fix it?

Choose a reason for hiding this comment

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

Good solution. You could probably simplify what you are returning. Do you need to assign it to a variable before returning?

Choose a reason for hiding this comment

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

This is a good answer for solving a problem with weight, but I think the question is asking about currency, like in Sprint-1/3-mandatory-interpret/3-to-pounds.js

Can you write a toPounds function that takes an input like "399p" and turns it into "£3.99"?

@LonMcGregor LonMcGregor added Reviewed Volunteer to add when completing a review and removed Review in progress This review is currently being reviewed. This label will be replaced by "Reviewed" soon. labels Jul 3, 2025
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 📅 Sprint 1 Assigned during Sprint 1 of this module
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants