Javascript Iterating Through Array Python Tutorial