This is one of my favorite methods to use with the JavaScript console. This method prints out your data in a table format. It makes it very easy to read the data that you're printing out, and is especially helpful when you need to view all the items in an array.

You can filter the attributes of the objects that show by passing a second argument to the method. The argument should be an array of strings that you want to show in the output.

The exercise for this section is as follows:

  1. Print out a pizza object
  2. Print out an array of friends’ names
  3. Print out an array of pizzas