Comment

Comment by kjensen

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.
parent kjensen 10 years ago

No comments yet

Be the first to share your thoughts.

Live from the official Hacker News API

A modern reader for Hacker News · SvelteKit + Skeleton