I believe there is one mistake in your article in the first example you give. The second call to sumNumbers() will produce a function. I think you meant to call sum() instead?
I think you should try to add some console.log calls to really see what is the expected output so that we can try your examples at home.
Hi there and thanks for your article.
I believe there is one mistake in your article in the first example you give. The second call to
sumNumbers()
will produce a function. I think you meant to callsum()
instead?I think you should try to add some
console.log
calls to really see what is the expected output so that we can try your examples at home.Thank you Amin. I will take a look at that mistake with sum(). I will also add console.log() statements in the future posts.