JS tip: console.log accepts multiple arguments


JS tip: console.log accepts multiple arguments. Each argument is conveniently output with a space in between.

Can't believe I've been concatenating strings all these years! 🤦‍♀️

Bonus tip: Slap `debugger` in your code to set a breakpoint in your browser. 😎

#javascript

View original on X