Javascript
JavaScript Fundamentals -- The JavaScript Console

console.group 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.group exercise. You were asked to use console.group to display:

1️⃣ Start the group and call it "Pizza Party"

2️⃣ Log the message "I'm having a pizza party"

3️⃣ Print a table of friends that are coming to the party

4️⃣ End the group

console.group('Pizza Party');
console.info("I'm having a pizza party!");
console.table(['Joe', 'Brooke', 'Amanda']);
console.groupEnd();

Stackblitz Solution

 

I finished! On to the next chapter