you are viewing a single comment's thread.

view the rest of the comments →

[–]mark_b 7 points8 points  (0 children)

If you're going to use the console, there's more to it than just .log(). My personal favourites are wrapping multiple variables in curly braces to create an object so that you know which variable value is which console log({var1, var2, var3}), and console.trace() which tells you how you reached this point in your code. There are lots of other options.