News for hackers. Stuff that matters.
Re:Who Said JavaScript Was Easy? by kjensen on Wednesday December 14, 2016 @12:33PM (#13177830)
Not a typo, he wants to pass a function to the promise. By adding the brackets you are invoking the greet function and passing the return value. Of course it works, you are calling it in the context of the original object. You made his point for him.

There are no comments on this comment yet.