Outline

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

1️⃣ A pizza object

2️⃣ An array of friends' names

3️⃣ An array of pizzas

const pizza1 = {
  name: 'pepperoni',
  crust: 'regular',
  toppings: ['marinara', 'cheese', 'pepperoni']
};
console.table(pizza1);

const friends = ['Joe', 'Brooke', 'Amanda'];
console.table(friends);

const pizza2 = {
  name: 'hawaiian',
  crust: 'deep',
  toppings: ['marinara', 'cheese', 'ham', 'pineapple']
};
console.table([pizza1, pizza2]);

Stackblitz Solution

 

I finished! On to the next chapter