Node JS
Thursday, 2 November 2017
Function as parameter in NodeJS
I have 2 functions like this:function hello(){console.log('Hello!');}function caller(fn){fn();}Why I can call "caller(hello);" but not "caller(hello)();" ?
Submitted November 03, 2017 at 05:09AM by BeYourself2017
No comments:
Post a Comment
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment