Python Iterate 2nd Array Methods Javascript Questions