JSFiddle - React, Tailwind, and code Playground

by suraj mahajan

JavaScript

String.prototype.replaceAll = function(search, replacement) {
    var target = this;
    return target.split(search).join(replacement);
};

var Search=prompt("What To Search?"); // It will be the sign "
var Replace=prompt("What Sign To Replace?"); // It will be the sign \"
var Text=prompt("Write Text Here");

			Text=Text.replaceAll(Search,Replace);
    
alert(Text);