DEV Community

Discussion on: Common JavaScript Mistakes You May be Making

 
aumayeung profile image
John Au-Yeung

Yea. That example works in JavaScript because it lets use pass in anything to a function.

It's very easy to make a mistake passing in a function like that