r/node • • Dec 17 '18

JavaScript Functions - 4 Ways

Post image
715 Upvotes

87 comments sorted by

View all comments

9

u/namesandfaces Dec 18 '18

I wouldn't call that four ways. That's like saying JS actually has two different if statements:

  • if (true) {...}

  • if (true) ...