Why JavaScript provide too many types of loops? I have an array with over 1 millions items and execute for a loop.