Remove all slashes from string using pure Javascript

"foo/bar/gas".replace(/\//g, "") # foobargas