JSFiddle - React, Tailwind, and code Playground

by tmtron

JavaScript

var mystring = "this,is,a,test";
mystring = mystring.replace(/,/g, "X");

alert(mystring);