Skip to content

Conversation

@EL1VAS
Copy link

@EL1VAS EL1VAS commented Oct 17, 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

In this PR are included all the excercises we had to do in sprint-1

EL1VAS added 15 commits October 16, 2025 22:32
Clarify comments explaining variable declaration and reassignment.
Created a variable initials by calling the location of a letter in a string (in this example location is 0, the first letter)
I used the same logic as the base variable, but I calculated all the locations after the dot
Used the same logic but chose the beggining of filePath till the last slash.
Added comments explaining how this works. A dice example helped me to understand it in the first place
Switched lines to comments and explained how to do so in another comment
Changed 'const' to 'let' for the age variable to allow reassignment.
Moved the declaration of cityOfBirth before its usage in console.log.
Changed cardNumber to a string to use slice method as it is only applied to strings
Renamed variables to start with a letter not a number
Found the function calls, identified the error and fixed it, found where variables are reassigned and where they were declared and explained why we have to remove the comma from a string "10,000" before we turn it into number.
Explained everything that was asked for in comments
Added explanations for alert and prompt functions.
Clarified the explanation of the console object and its methods.
Added comments to clarify the purpose of each variable and operation in the conversion from pence to pounds.
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

@MustafaBora MustafaBora closed this Jan 7, 2026
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