Skip to content

Conversation

@Konvaly
Copy link

@Konvaly Konvaly commented Nov 1, 2025

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

This PR covers work across all main sections of the sprint project:

Errors: Checked each file in the errors folder, predicted and explained what errors occur, and why they happen.

Debug: Found and fixed issues in the debug files, explaining why the code wasn’t working and verifying the fixes.

Implement: Built and tested functions for 1-bmi.js, 2-cases.js, and 3-to-pounds.js to meet the given requirements.

Interpret: Reviewed and explained how the larger programs work, using console.log and docs to understand unfamiliar parts.

Extend: Wrote tests and fixed any bugs for the 24-hour to 12-hour time conversion function.

All tasks now run correctly, with clear explanations and working code throughout.

@github-actions
Copy link

github-actions bot commented Nov 1, 2025

Your PR's title isn't in the expected format.

Please check the expected title format, and update yours to match.

Reason: Wrong number of parts separated by |s

If this PR is not coursework, please add the NotCoursework label (and message on Slack in #cyf-curriculum or it will probably not be noticed).

@Konvaly Konvaly added 📅 Sprint 2 Assigned during Sprint 2 of this module Needs Review Trainee to add when requesting review. PRs without this label will not be reviewed. labels Nov 1, 2025
@github-actions
Copy link

github-actions bot commented Nov 1, 2025

Your PR's title isn't in the expected format.

Please check the expected title format, and update yours to match.

Reason: Wrong number of parts separated by |s

If this PR is not coursework, please add the NotCoursework label (and message on Slack in #cyf-curriculum or it will probably not be noticed).

1 similar comment
@github-actions
Copy link

github-actions bot commented Nov 1, 2025

Your PR's title isn't in the expected format.

Please check the expected title format, and update yours to match.

Reason: Wrong number of parts separated by |s

If this PR is not coursework, please add the NotCoursework label (and message on Slack in #cyf-curriculum or it will probably not be noticed).

@Konvaly Konvaly changed the title London | 25-ITP-SEP | Mariia Serhiienko| Sprint 2 | Module-Structuring-and-Testing Data | coursework/sprint-2 London | 25-ITP-SEP | Mariia Serhiienko| Sprint 2 | Module-Structuring-and-Testing Data Coursework/sprint-2 Nov 1, 2025
@jennethydyrova jennethydyrova 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 Nov 3, 2025
Copy link
Contributor

@jennethydyrova jennethydyrova left a comment

Choose a reason for hiding this comment

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

Hi @Konvaly! Very clean code, nice work! There are couple of issues I pinpointed, could you please address those?

Also, could you please remove package-lock.json file from this PR as it's not related?

Comment on lines 15 to 16
let capitalisedStr = `${str[0].toUpperCase()}${str.slice(1)}`;
return capitalisedStr;
Copy link
Contributor

Choose a reason for hiding this comment

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

This is correct but can you think of a way to simplify it? Also, does it need to be let?

Copy link
Author

Choose a reason for hiding this comment

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

Yes, "const" might be better option, cause I don't need to change "capitalisedStr" in next evalutaion of my function.
About simplifying - actually I can return the result without any defined variable.

Comment on lines 27 to 29
const percentage = `${decimalNumber * 100}%`;

return percentage;
Copy link
Contributor

Choose a reason for hiding this comment

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

Same as my previous comment for capitalise function, can you think of a way to simplify it?

Copy link
Author

Choose a reason for hiding this comment

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

I simplified this function in the same way like with previous task :)

// Predict and explain first...

// =============> write your prediction here
// =============> I think the result will be undefined because in the function there is no return statement.
Copy link
Contributor

Choose a reason for hiding this comment

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

Very good guess!


// Finally, correct the code to fix the problem
// =============> write your new code here
// =============> function multiply(a, b) {
Copy link
Contributor

Choose a reason for hiding this comment

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

I think you would want to comment out the broken code and have your fixed code uncommented. Same for other files.

Copy link
Author

Choose a reason for hiding this comment

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

Thank you! It was confusing for me because there weren't some clear instructions about what do I have to comment/uncomment.
Now I've done this due to your recommendation.

Copy link
Contributor

Choose a reason for hiding this comment

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

I'll note this!

// Predict the output of the following code:
// =============> Write your prediction here
// =============> The output will be:
// 1. The last digit of 42 is 3
Copy link
Contributor

Choose a reason for hiding this comment

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

Nice!

// Finally, correct the code to fix the problem
// =============> write your new code here

//=============> const num = 103;
Copy link
Contributor

Choose a reason for hiding this comment

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

I think the point of this exercise is not to declare any global variables and just pass all the numbers as function arguments

Copy link
Author

Choose a reason for hiding this comment

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

I also thought about it , but I was sure that I have to change only function. My bad!

// Use the MDN string documentation to help you find a solution
// This might help https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String/toUpperCase

function toUpperCaseSnakeString(str) {
Copy link
Contributor

Choose a reason for hiding this comment

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

This is fine but could be better. Do you need to say string here? Think of other string methods such as toUpperCase or to toLowerCase. Can you think of a better name?

Copy link
Author

Choose a reason for hiding this comment

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

You're right, I changed this name to "toUpperSnakeCase".

@jennethydyrova jennethydyrova 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 Nov 3, 2025
@Konvaly
Copy link
Author

Konvaly commented Nov 5, 2025

Hi @Konvaly! Very clean code, nice work! There are couple of issues I pinpointed, could you please address those?

Also, could you please remove package-lock.json file from this PR as it's not related?

@jennethydyrova
Copy link
Contributor

Hi @Konvaly! All your answers are correct but I don't see changes applied. Did you forget to push?

@Konvaly
Copy link
Author

Konvaly commented Nov 5, 2025

Hi @jennethydyrova !

I've pushed it just now and added some tests and fixed bugs in 5-stretch-extend.js.
I really appreciate your time and detailed feedback , it helped me spot a few things I’d missed!

@Konvaly Konvaly added the Needs Review Trainee to add when requesting review. PRs without this label will not be reviewed. label Nov 5, 2025
@jennethydyrova
Copy link
Contributor

hi @Konvaly ! I am happy to approve this PR but you have your pipeline failing. Can you please fix it?

@jennethydyrova jennethydyrova removed the Needs Review Trainee to add when requesting review. PRs without this label will not be reviewed. label Nov 6, 2025
@Konvaly Konvaly added Needs Review Trainee to add when requesting review. PRs without this label will not be reviewed. and removed Reviewed Volunteer to add when completing a review with trainee action still to take. labels Nov 7, 2025
@Konvaly Konvaly changed the title London | 25-ITP-SEP | Mariia Serhiienko| Sprint 2 | Module-Structuring-and-Testing Data Coursework/sprint-2 London | 25-ITP-SEP | Mariia Serhiienko| Sprint 2 | Coursework/sprint-2 Nov 8, 2025
@jennethydyrova jennethydyrova added Complete Volunteer to add when work is complete and all review comments have been addressed. and removed Needs Review Trainee to add when requesting review. PRs without this label will not be reviewed. labels Nov 8, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Complete Volunteer to add when work is complete and all review comments have been addressed. 📅 Sprint 2 Assigned during Sprint 2 of this module

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants