Javascript
JavaScript Fundamentals -- The JavaScript Console

console.warn Exercise Review

PRO

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

1️⃣ A warning that the pizza will be late

2️⃣ An array of toppings that some people may not like

3️⃣ An object with a warning attribute that says the oven is hot

console.warn('The pizza is running late! Sorry!!');

const weirdToppings = ['anchovies', 'olives', 'red peppers'];
console.warn(weirdToppings);

const warning = {
  warning: `The oven is very hot! Don't touch it!`
};
console.warn(warning);

Stackblitz Solution