Javascript
JavaScript Fundamentals -- The JavaScript Console

console.warn + Exercise

PRO
Outline

The next method we can use is console.warn. It has the same functionality as log and 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:

  1. Print a warning that the pizza will be late
  2. Print an array of toppings people may not like
  3. Print an object with a warning attribute that says the oven is hot
 

I finished! On to the next chapter