Data type in the console in JavaScript

The console displays strings and numbers in different colors. This often helps to find errors in programs.

Let's print a number and a string side by side so we can see the difference in color:

console.log(123); console.log('123');

Print all the data types you know to the console. See how their colors differ.