Javascript print.log usage

This is a quick way to get variable or array values in the console while debugging. The following code will display the value of a variable: console.log($variable); for objects the…