Skip to content

Conversation

@BaselAdoum
Copy link

Learners, PR Template

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

Changelist

line 3 is reassigning the value of line one. = is not equal sign but a variable creating operator.
The idea is count is the original count 0 and adding to it 1. So the count is reassigned to 1.

@BaselAdoum BaselAdoum changed the title Brussels| 25-ITP-May | Basel Adoum | Sprint 1 | 1-count.js Brussels| 25-ITP-May | Basel Adoum | Sprint 1 | Oct 20, 2025
Copy link

@MustafaBora MustafaBora left a comment

Choose a reason for hiding this comment

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

Well done but try not sending the unnecesary changes to repo next time

Copy link

@MustafaBora MustafaBora left a comment

Choose a reason for hiding this comment

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

Can you correct the PR by fixing the code according to my comments. And also can you send the related Sprint Sprint 1 please?

@@ -1,2 +1,2 @@
const 12HourClockTime = "20:53";
const 12HourClockTime = "20:53";

Choose a reason for hiding this comment

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

it shouldn't start with a number

Copy link
Author

@BaselAdoum BaselAdoum Jan 5, 2026

Choose a reason for hiding this comment

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

Thank you Mustafa
i fixed the code according to your comment. I also checked the commits in github. all in order.

// const percentageChange = (priceDifference / carPrice) * 100;

// e) Describe what the expression Number(carPrice.replaceAll(",","")) is doing - what is the purpose of this expression?
//It removes commas from the string numbers "10,000" and "8,543" to get "10000" and "8543"

Choose a reason for hiding this comment

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

And also changes the Strings to numbers

// 1. const penceString = "399p": initialises a string variable with the value "399p"
// const penceStringWithoutTrailingP deletes the p at the end of the string and gives a new string.
//paddedPenceNumberString takes that new string and makes sure it is at leas 3 digits (i ncase needed fill the gap with 0 from the left)
// pounds is a variable that take the first index and declare it as pound.

Choose a reason for hiding this comment

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

//takes all digits except the last two.
//it’s taking the last two digits, padding is basically unnecessary here because you already padded to 3 digits earlier.

Copy link
Author

Choose a reason for hiding this comment

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

Got it.

Copy link

@MustafaBora MustafaBora left a comment

Choose a reason for hiding this comment

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

Unanswered question Sprint1/4-stretch-explore

Let's try an example.

In the Chrome console,
invoke the function `alert` with an input string of `"Hello world!"`;

Choose a reason for hiding this comment

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

Answer those questions please

Copy link
Author

Choose a reason for hiding this comment

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

I solved the strech tasks.

Copy link

@MustafaBora MustafaBora left a comment

Choose a reason for hiding this comment

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

Sprint-1/4-stretch-explore/ folder also needs to be solved please

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants