Skip to content

Conversation

@shpomp
Copy link
Contributor

@shpomp shpomp commented Nov 2, 2025

Change # 1:

before

const name = "benjamin";
name = "benjamin-better";

const pizzaPrice = 78;
const pizzaPriceDiscounted = pizzaprice - 10;

const users = ["peter", "Johnny", "Børge"];

const lastUser = users[3];

after

...

const lastUser = users[3];
console.log(lastUser);

Without the console.log, it is not obvious that something is wrong with the const lastUser = users[3];.

EDIT:

Change # 2:

Pizza exercise adjustment suggested by @vdaguenet, resolves #223. 🍕

@shpomp shpomp requested a review from a team as a code owner November 2, 2025 14:25
@shpomp shpomp changed the title fix: intro-to-js week-1 class exercise - small fix fix: intro-to-js week-1 session exercise - small fix Nov 2, 2025
@vdaguenet
Copy link

Agreed! No one noticed the issue on lastUser today.

@shpomp shpomp changed the title fix: intro-to-js week-1 session exercise - small fix fix: intro-to-js week-1 session exercises - small adjustments Nov 2, 2025
Copy link
Contributor

@adamblanchard adamblanchard left a comment

Choose a reason for hiding this comment

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

Looks good, thanks both!

@adamblanchard adamblanchard merged commit 49d8105 into main Nov 3, 2025
3 checks passed
@adamblanchard adamblanchard deleted the fix-intro-to-js-week-1-exercise branch November 3, 2025 08:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: No status

Development

Successfully merging this pull request may close these issues.

Adjustments to the Pizza Project of intro-to-js week 1

4 participants