Perl Turn Array Into String Js Mdn Array Methods In Javascript