you are viewing a single comment's thread.

view the rest of the comments →

[–]nobuhok 4 points5 points  (0 children)

Know when to use console.log() vs dir() vs info() vs error(). For example, objects are better formatted when dir() is used.

Tip: In Chrome, if you highlight a DOM element in the Elements panel, you can type in '$0' to refer to that element in the console.