JSFiddle - React, Tailwind, and code Playground by Kristian Jabilles May 04, 2020 JavaScript const test = '' console.log(test && test.replace(/-/g, "/") || 'asd')