The next method we can use is
console.warn. It has the same functionality as
info, but it displays differently. There is an icon next to the message, and the background is yellow. We can see that it is different from a normal info level message.
The assignment for this section is:
- Print a warning that the pizza will be late
- Print an array of toppings people may not like
- Print an object with a warning attribute that says the oven is hot