5 ms·
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 refer
by pawelduda 5y ago
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 https://news.ycombinator.com/item?id=27524164