JSFiddle - React, Tailwind, and code Playground

JavaScript

alert("04-12".replace("-", "/"));