DEV Community

Discussion on: Common JavaScript Mistakes You May be Making

Collapse
 
aumayeung profile image
John Au-Yeung

The last snippet assume that everyone knows what the first argument of console.log should be.

So it's leas clear. But both are fine if we're just logging the value straight up.