News for hackers. Stuff that matters.
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
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.
Re:Ways to Invoke a Function in JavaScript by shawnz on Sunday June 18, 2017 @07:07PM (#14583501)
but the inner function is not anonymous, which is the focus of the question.