JSFiddle - React, Tailwind, and code Playground by edgren November 28, 2012 JavaScript var string = 'this-is-a-line-of-words'; alert(string.replace('-', '/'));