Skip to content

London- ITP January | Shohreh Bayat | Structuring and testing data | Week 1 #268

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

Shohreh-bayat
Copy link

@Shohreh-bayat Shohreh-bayat commented Feb 9, 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.

@Shohreh-bayat Shohreh-bayat changed the title I added my answers for sprint 1 inside of the files, under each question. London- ITP January | Shohreh Bayat | Structuring and testing data | Week 1 Feb 9, 2025
@Shohreh-bayat Shohreh-bayat added the Needs Review Participant to add when requesting review label Feb 9, 2025
@Shohreh-bayat
Copy link
Author

I forgot to commit one by one, and when I entered all my answers, I remembered that I had to commit one by one. So sorry about that.

@halilibrahimcelik halilibrahimcelik added Review in progress This review is currently being reviewed. This label will be replaced by "Reviewed" soon. and removed Needs Review Participant to add when requesting review labels Feb 11, 2025
@halilibrahimcelik
Copy link

I realized you did not finish 1-key-exercises, I encourage you to also finish that part as well.

@halilibrahimcelik
Copy link

I forgot to commit one by one, and when I entered all my answers, I remembered that I had to commit one by one. So sorry about that.

It is essential to divide and commit your changes separately, this would be both helpful for reviewers as well as for you to inspect your changes.

const cityOfBirth = "Bolton";
console.log(`I was born in ${cityOfBirth}`);

Choose a reason for hiding this comment

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

what was the error can you also explain it please ?

const last4Digits = cardNumber.slice(-4);
const last4Digits = cardNumber.toString().slice(-4);
console.log (last4Digits)


// The last4Digits variable should store the last 4 digits of cardNumber
// However, the code isn't working
// Before running the code, make and explain a prediction about why the code won't work
// Then run the code and see what error it gives.
// Consider: Why does it give this error? Is this what I predicted? If not, what's different?

Choose a reason for hiding this comment

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

It is important to understand why we got an error in the first place, can you explain what causes the error

// b) Run the code and identify the line where the error is coming from - why is this error occurring? How can you fix this problem?
//SyntaxError: missing ) after argument list. priceAfterOneYear = Number(priceAfterOneYear.replaceAll("," ""));

Choose a reason for hiding this comment

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

are you sure "missing )" is the reason behind syntax error ?

@halilibrahimcelik halilibrahimcelik added 👀 Review Git Changes requested to do with Git and removed Review in progress This review is currently being reviewed. This label will be replaced by "Reviewed" soon. labels Feb 11, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
👀 Review Git Changes requested to do with Git
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants