Hacker News new | past | comments | ask | show | jobs | submit login

The second example effectively prints an object with it's name. I often have multiple console.log statements and by utilizing that I know what each one is referring to just by typing 2 more characters.

EDIT: perhaps a better description by someone else https://news.ycombinator.com/item?id=27524164




Join us for AI Startup School this June 16-17 in San Francisco!

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: