Clear the array and re-store the new value in array

Why not--?

arrayIndex = 0;
//return 0;
1 Like