Re:Ways to Invoke a Function in JavaScript
by owebmaster on Sunday June 18, 2017 @04:38PM
(#14582789)
Not cheating, this is an anon function and its call
[ Parent
| on HN ]
Re:Ways to Invoke a Function in JavaScript
by underwater on Sunday June 18, 2017 @07:18PM
(#14583548)
`log` is invoked by the expression `console.log(2)`. That's exactly the same as example 1.