Javascript
JavaScript Fundamentals -- The JavaScript Console

console.info + Exercise

PRO
Outline

In this video, we go over console.info. The truth is, there's no real difference between console.log and console.info. There are semantic differences, but no practical differences.

Generally, I use console.log for debugging purposes. But if I need to print a message to the console for an end user then I would use console.info. Everything that we practiced with console.log applies here as well.

For the exercise for this course, you will:

  1. Print your favorite dessert
  2. Print a message with your favorite flavor of ice cream coming from a variable
  3. Print an object with two attributes: dessert ('ice cream sundae’) and an array of toppings
 

I finished! On to the next chapter