I need to change the index value in javascript
let say
var fruits = ["Banana", "Orange", "Apple", "Mango"];
with index 0-banana,1-Orange,2-Apple,3-Mango
What I want is to change these index values say 345-Banana,346-Orange,347-Apple, 348-Mango .
let me know if there is any quick way to do it , it will reduce some of my conversion code .. Otherwise I have to keep track of index (0,1,2,3) to values(345,346...)
I will store index value in my db, array value is just to display on UI (just like select box)