The console.assert method is great for debugging and allowing you to see if a given condition is met at some point in your application. If the condition is false, an error message that you provide is printed to the console. If it's true, nothing is printed out.

You can pass as many arguments as you'd like to the method, as long as the first is the assertion, and as long as there's at least one argument after that.

The exercise for this section is as follows:

  1. Create worstPizza and bestPizza variables; give them separate values
  2. Do an assertion: worstPizza == bestPizza
  3. The error message should have multiple strings and these two variables
  4. Do the same assertion again, but the second argument should be an object
  5. The object should have both variables and the error message

I finished! On to the next chapter