Skip to content

Conversation

@AFatmaa
Copy link

@AFatmaa AFatmaa commented Nov 8, 2024

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.

@AFatmaa AFatmaa added the Needs Review Trainee to add when requesting review. PRs without this label will not be reviewed. label Nov 8, 2024
Copy link

@maesierra maesierra left a comment

Choose a reason for hiding this comment

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

Good job!!
😃

// You should look up Math functions for this exercise https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Math

// Create a variable called wholeNumberPart and assign to it an expression that evaluates to 56 ( the whole number part of num )
wholeNumberPart = Math.floor(num); // Math.floor() removes the decimal part by rounding down to the nearest whole number

Choose a reason for hiding this comment

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

This is great but it's usually a good habit to always use let or const when declaring your variables to make sure we are only declaring them once.
It's OK to keep it as it is. You don't need to make changes.


// a) How many function calls are there in this file? Write down all the lines where a function call is made
// Number(carPrice.replaceAll(",", "")) — This line calls two functions: .replaceAll() and Number().
// Number(priceAfterOneYear.replaceAll(",", "")) — This line also calls two functions: .replaceAll() and Number().

Choose a reason for hiding this comment

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

What about console in line 10`?

Copy link
Author

Choose a reason for hiding this comment

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

Hi Maesierra,

Thank you for your review! Do you mean I didn't write any comments for console.log? If so, I will add it. 😊

@maesierra maesierra 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 Nov 9, 2024
@AFatmaa AFatmaa closed this Nov 11, 2024
@AFatmaa AFatmaa added the Complete Volunteer to add when work is complete and all review comments have been addressed. label Nov 11, 2024
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.

2 participants