---
title: "Comment by Favourite Jome on \"ES6 - Higher-Order Functions\" | Hashnode"
description: "Hi, the Array.find &amp; Array.findIndex example, I didn&#39;t understand it clearly, so I decided to run it and I got a different output."
url: "https://hashnode.com/posts/es6-higher-order-functions/5f86951976870f43aa09d304/comment/5f86a97a4f98e6438943641f"
---

[Discussion](https://hashnode.com/posts/es6-higher-order-functions/5f86951976870f43aa09d304)

Comment [ES6 - Higher-Order Functions](https://hashnode.com/posts/es6-higher-order-functions/5f86951976870f43aa09d304)

[Favourite Jome](https://hashnode.com/@Favourite)

[Oct 14, 2020](https://hashnode.com/posts/es6-higher-order-functions/5f86951976870f43aa09d304/comment/5f86a97a4f98e6438943641f)

Hi, the `Array.find & Array.findIndex` example, I didn't understand it clearly, so I decided to run it and I got a different output.

[Skay](https://hashnode.com/@skay)

[Oct 14, 2020](https://hashnode.com/posts/es6-higher-order-functions/5f86951976870f43aa09d304/comment/5f86a97a4f98e6438943641f#reply-5f86b5bc4f98e643894364b6)

[Jome Favourite](https://hashnode.com/@Favourite) - Please accept my apologies. I have corrected the code snippet. Kindly verify the same and let me know if you still do not understand it.

[Favourite Jome](https://hashnode.com/@Favourite)

[Oct 14, 2020](https://hashnode.com/posts/es6-higher-order-functions/5f86951976870f43aa09d304/comment/5f86a97a4f98e6438943641f#reply-5f876a3042164e4fe94feeed)

It's clear now, no need to apologise I'm still a newbie 😊. But accepted. It the same now and I understand too [Skay](https://hashnode.com/@skay)
