Javascript Loop Array Index Value In Python Which Of The Following