Here, I'm trying to get `id` and `index` for a my button action, but my index is coming as `NaN`.

Here is my console output:

[![enter image description here](https://i.stack.imgur.com/cZ4H8.png)](https://i.stack.imgur.com/cZ4H8.png)