JSFiddle - React, Tailwind, and code Playground

by edgren

JavaScript

var string = 'this-is-a-line-of-words';
alert(string.replace('-', '/'));