JavaScript Fundamentals -- The JavaScript Console Exercise Review


Here is a possible solution to our exercise. You were asked to use to display:

1️⃣ Your favorite dessert

2️⃣ A message that uses multiple arguments, including a variable that contains your favorite flavor of ice cream

3️⃣ An object with two attributes, dessert (with the value 'ice cream sundae') and an array of toppings'Ice Cream');
const favorite = 'Aggie Blue Mint';'My favorite ice cream is', favorite);
  dessert: 'ice cream sundae',
  toppings: ['caramel', 'chocolate', cherry', 'whipped cream', 'peanuts']

Stackblitz Solution


I finished! On to the next chapter