Foreach Array Object Javascript Mdn Math Function Calculator