How can i reset indexing in a for loop after the continue statement?

  1. I faced a problem the other day with indexing, i know that the
    continue statement doesn’t get rid of the value completely, sorry if
    the question is too dumb, i’m still new to JS.

Let arr = [ “Ahmed”, 4, ” mia”, “jhon”, 6 ,7,” Chris” ]

For ( i = 0; I ${arr{i}}`) } // output

0 => ahmed 2 => mia 3 => jhon 6 => chris

// how i want it to look

0 => ahmed 1 => mia 2 => jhon 3 => Chris