---
title: "Comment by HellCatVN on \"Higher Order Functions in JavaScript🚀\" | Hashnode"
description: "Wrong tutorial since output setTimeOut is not like code given: Right answer The statement will be printed immediately Now statements will be printed st each sec"
url: "https://hashnode.com/posts/higher-order-functions-in-javascript/630f744275af73ad1f061685/comment/6310455e56df9e8e5025b0ab"
---

[Discussion](https://hashnode.com/posts/higher-order-functions-in-javascript/630f744275af73ad1f061685)

Comment [Higher Order Functions in JavaScript🚀](https://hashnode.com/posts/higher-order-functions-in-javascript/630f744275af73ad1f061685)

[HellCatVN](https://hashnode.com/@HellCat)

[Sep 1, 2022](https://hashnode.com/posts/higher-order-functions-in-javascript/630f744275af73ad1f061685/comment/6310455e56df9e8e5025b0ab)

Wrong tutorial since output setTimeOut is not like code given:

Right answer

```
The statement will be printed immediately
Now statements will be printed st each sec
3
1
2
4
```

[Deepak Singh](https://hashnode.com/@deepakCodes5219)

[Sep 4, 2022](https://hashnode.com/posts/higher-order-functions-in-javascript/630f744275af73ad1f061685/comment/6310455e56df9e8e5025b0ab#reply-63144f5f041b51e1712e3a98)

Yes! That is a mistake on my side. Thanks for correcting it. I'll update it.
