---
title: "Comment by Gerardo Cardenas on \"My Favorite JavaScript Tips and Tricks\" | Hashnode"
description: "I think that the output is incorrect of the bullet number 11: let [fruit, ...rest] = emojis; console.log(rest);"
url: "https://hashnode.com/posts/my-favorite-javascript-tips-and-tricks/5f203086ba06442180226d0f/comment/5f7b79659d088e603ef39596"
---

[Discussion](https://hashnode.com/posts/my-favorite-javascript-tips-and-tricks/5f203086ba06442180226d0f)

Comment [My Favorite JavaScript Tips and Tricks](https://hashnode.com/posts/my-favorite-javascript-tips-and-tricks/5f203086ba06442180226d0f)

[Gerardo Cardenas](https://hashnode.com/@AmateurProgrammer)

[Oct 5, 2020](https://hashnode.com/posts/my-favorite-javascript-tips-and-tricks/5f203086ba06442180226d0f/comment/5f7b79659d088e603ef39596)

I think that the output is incorrect of the bullet number 11: let \[fruit, ...rest\] = emojis; console.log(rest);

[Tapas Adhikary](https://hashnode.com/@atapas)

[Oct 6, 2020](https://hashnode.com/posts/my-favorite-javascript-tips-and-tricks/5f203086ba06442180226d0f/comment/5f7b79659d088e603ef39596#reply-5f7be0a5e93896601dd2911a)

Hi [Gerardo Cardenas](https://hashnode.com/@AmateurProgrammer), Thanks for reading and commenting.

To understand the comment better, I have tried it again and found the output to be correct.

![image.png](https://cdn.hashnode.com/res/hashnode/image/upload/v1601953924055/Q2KWlQjmN.png)

It would be great, if you could check it and let me know, I would be glad to correct it.

[Gerardo Cardenas](https://hashnode.com/@AmateurProgrammer)

[Oct 6, 2020](https://hashnode.com/posts/my-favorite-javascript-tips-and-tricks/5f203086ba06442180226d0f/comment/5f7b79659d088e603ef39596#reply-5f7cd38294f39f6ab9fbf741)

I am sorry, i did not read correctly maybe. Best regards [Tapas Adhikary](https://hashnode.com/@atapas)

[Tapas Adhikary](https://hashnode.com/@atapas)

[Oct 7, 2020](https://hashnode.com/posts/my-favorite-javascript-tips-and-tricks/5f203086ba06442180226d0f/comment/5f7b79659d088e603ef39596#reply-5f7d3164eba2f86adc0b6334)

[Gerardo Cardenas](https://hashnode.com/@AmateurProgrammer), Not a problem at all. Thanks for reading.
