Jquery Loop Over Array Javascript Push Method Mdn