Skip to content

Sheffield | 26-Jan-ITP | Daniel Aderibigbe | Sprint 1 | Object Destructing#399

Open
Dan2Clouted wants to merge 1 commit intoCodeYourFuture:mainfrom
Dan2Clouted:sprint-1/destructing
Open

Sheffield | 26-Jan-ITP | Daniel Aderibigbe | Sprint 1 | Object Destructing#399
Dan2Clouted wants to merge 1 commit intoCodeYourFuture:mainfrom
Dan2Clouted:sprint-1/destructing

Conversation

@Dan2Clouted
Copy link
Copy Markdown

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

Completed all destructing exercises.

@Dan2Clouted Dan2Clouted added the Needs Review Trainee to add when requesting review. PRs without this label will not be reviewed. label Apr 4, 2026
// Update the parameter to this function to make it work.
// Don't change anything else.
function introduceYourself(___________________________) {
function introduceYourself(name, age, favouriteFood) {
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Did you try running the code?

total += lineTotal;

console.log(
`${quantity}`.padEnd(8) + itemName.padEnd(20) + lineTotal.toFixed(2)
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Good idea to use padEnd() to align the item in the first two columns.

How would you modify this code to align the value of lineTotal when its value is 10.00 or more?

@cjyuan cjyuan 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 Apr 9, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

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