JSFiddle - React, Tailwind, and code Playground JavaScript var test = "Javascript vaja".replace(/(ja)/gi, '<b>$1</b>'); alert(test);