Matlab Add All Values In Array Javascript Function Examples