Why Use Arraylist Over Array In Javascript Mdn Set Timeout