4 ms·
What did you mean to emphasize here? Cos what I'm seeing is the language feature (ES6's "shorthand properties"), not something inherent to `console`.
by ngcazz 5y ago
What did you mean to emphasize here? Cos what I'm seeing is the language feature (ES6's "shorthand properties"), not something inherent to `console`.
- pawelduda 5y agoThe 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 https://news.ycombinator.com/item?id=27524164