Foreach Array Object Javascript Mdn Math Function Machines