Javascript
JavaScript Fundamentals -- The JavaScript Console

console.error Exercise Review

Mute
Current Time 0:00
/
Duration Time 0:00
Loaded: 0%
Progress: 0%
Stream TypeLIVE
Remaining Time -0:00
 
PRO

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

1️⃣ An error that a pizza burned

2️⃣ An error that a pizza had run out

console.error('The pepperoni pizza burned!');
console.error('The hawaiian pizza ran out!');

Stackblitz Solution

 

I finished! On to the next chapter