How To Replace Space With Dash In Javascript Delft Stack

How To Replace Space With Dash In Javascript Delft Stack