Skip to content

Module-Structuring-and-Testing-Data sprint2 Nurzat Nurdinova #622

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 1 commit into
base: main
Choose a base branch
from

Conversation

nurzatpro
Copy link
Member

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 changed the title answer sprint2 Module-Structuring-and-Testing-Data sprint2 Nurzat Nurdinova Jun 28, 2025
@nurzatpro nurzatpro added Needs Review Participant to add when requesting review 📅 Sprint 2 Assigned during Sprint 2 of this module labels Jun 28, 2025
@cjyuan
Copy link
Contributor

cjyuan commented Jul 6, 2025

It looks like the PR template wasn’t filled out. Could you please update the description accordingly?
image

Copy link
Contributor

@cjyuan cjyuan left a comment

Choose a reason for hiding this comment

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

  1. I think you missed answering the questions in Sprint-2/4-mandatory-interpret/time-format.js.

  2. Why not practice "committing files one by one, on purpose, and for a reason"?
    In VSCode, you can select which file to stage, and commit only the staged file.
    See: https://www.youtube.com/watch?v=z5jZ9lrSpqk&t=705 (At around 12:50 minute marker, the video shows how to stage a single file). (You can practice this in future PRs)

Comment on lines +18 to +21
squareHeight =height * height;
bmi = weight / squareHeight;
return bmi.0toFixed(1);

Copy link
Contributor

Choose a reason for hiding this comment

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

  1. What type of value do you expect the function to return? A number or a string?
    Does your function return the type of value you expect it to return?

  2. There is a syntax error at line 20.

  3. Did you forget to declare squareHeight and bmi?

function upperSnakeCase(str) {
return (upperSnakeCase = str.replaceAll(" ", "_").toUpperCase());
}
console.log(upperSnakeCase("Congratulations having a boy! 🎉"));
Copy link
Contributor

Choose a reason for hiding this comment

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

There is a bug at line 18.

If you call upperSnakeCase() multiple times in the same script, you will discover the bug.

Comment on lines +7 to +12

function toPounds(kg) {
const pounds =kg *2.20462;
return pounds.toFixed(2);

}
Copy link
Contributor

Choose a reason for hiding this comment

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

The objective is to turn the code in Sprint-1/3-mandatory-interpret/3-to-pounds.js into a function.

@cjyuan cjyuan added Reviewed Volunteer to add when completing a review and removed Needs Review Participant to add when requesting review labels Jul 6, 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 2 Assigned during Sprint 2 of this module
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants