Matlab Array Functions In Javascript Interview