Skip to content

Conversation

Mikiyas-STP
Copy link

@Mikiyas-STP Mikiyas-STP commented Feb 10, 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 COHORT_NAME | FIRST_NAME LAST_NAME | REPO_NAME | WEEK
  • 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.

@Mikiyas-STP
Copy link
Author

For the Mentor
This is my PR for week1/sprint 1 of structuring and testing module.

@Mikiyas-STP Mikiyas-STP added 📅 Sprint 1 Assigned during Sprint 1 of this module Needs Review Trainee to add when requesting review. PRs without this label will not be reviewed. labels Feb 10, 2025
Copy link

@CE-0 CE-0 left a comment

Choose a reason for hiding this comment

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

Here is some feedback


const dir = ;
const ext = ;
const dire = filePath.slice(1, lastSlashIndex);
Copy link

Choose a reason for hiding this comment

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

Intended variable name is written incorrectly.

Look under the 'dir' column and see all the characters that fall within it, as the range of this slice is insufficient.

Copy link
Author

@Mikiyas-STP Mikiyas-STP Feb 13, 2025

Choose a reason for hiding this comment

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

i will see this with a mentor on saturday. OR please let me know if you have free time for a quick call to resolve this issue since i didn't understand my mistake here. Or if you cant please Comment out for [Sprint-1/1-key-exercises/3-paths.js]AND [Sprint-1/3-mandatory-interpret/2-time-format.js] so that i will close this PR , THANK YOU CE-O

Copy link
Author

Choose a reason for hiding this comment

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

i commited my work for the corrections as well

Copy link
Author

Choose a reason for hiding this comment

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

Fixed for the dir !!!

@@ -1,9 +1,16 @@
const cardNumber = 4533787178994213;
const last4Digits = cardNumber.slice(-4);
const last4Digits = cardNumber.toString().slice(-4);
Copy link

Choose a reason for hiding this comment

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

Good work, but I would advise that you make last4Digits the same data type as cardNumber

@@ -1,2 +1,5 @@
const 12HourClockTime = "20:53";
const 24hourClockTime = "08:53";
const 24hourClockTime = "08:53";
Copy link

Choose a reason for hiding this comment

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

Please fix the error.

There is another error present here. Please carefully compare the variable names to their respective values and see if you notice anything wrong.

Copy link
Author

Choose a reason for hiding this comment

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

done


// line 1,2,7 and 8 are variable declarations.
// e) Describe what the expression Number(carPrice.replaceAll(",","")) is doing - what is the purpose of this expression?
//it is replacing the characters in the string specified in the bracket to make them numbers.
Copy link

Choose a reason for hiding this comment

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

Could you please be just a little bit more specific? Not too in-depth, but be more specific about the details of the function.

Copy link
Author

Choose a reason for hiding this comment

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

done

// 6
// b) How many function calls are there?

// 0
Copy link

Choose a reason for hiding this comment

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

That is incorrect. Look over the code more carefully.

Copy link
Author

@Mikiyas-STP Mikiyas-STP Feb 13, 2025

Choose a reason for hiding this comment

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

i didn’t see any function call even if i try to . for b it is 0. did i miss your question?


// it represent the duration of the movie in hr min and sec , "duration" is better variable naming
// f) Try experimenting with different values of movieLength. Will this code work for all values of movieLength? Explain your answer
//i have checked it using many numbers but it doesnt work for float numbers and negative numbers (conceptually since their is no negative duration)
Copy link

Choose a reason for hiding this comment

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

The question is only asking about whole numbers, as movieLength is not supposed to be a float variable or have a negative value.

Copy link
Author

Choose a reason for hiding this comment

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

done. thankyou

@Mikiyas-STP Mikiyas-STP removed the 📅 Sprint 1 Assigned during Sprint 1 of this module label Feb 13, 2025
@Mikiyas-STP Mikiyas-STP removed the Needs Review Trainee to add when requesting review. PRs without this label will not be reviewed. label Feb 15, 2025
@halilibrahimcelik halilibrahimcelik added the Reviewed Volunteer to add when completing a review with trainee action still to take. label Feb 15, 2025
@Mikiyas-STP Mikiyas-STP added the Complete Volunteer to add when work is complete and all review comments have been addressed. label Feb 16, 2025
@Mikiyas-STP
Copy link
Author

All tasks done.
All corrections made.
PR is closed with this message.
@Mikiyas-STP @CE-0 @halilibrahimcelik

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

3 participants