-1
Good morning to all!! I wonder what I’m doing wrong in the code:
function () {
var x = infoComentarioStrReplace.replace(" $$ ","*")//var resposta = infoComentarioStrReplace.replace("$", "#");
console.log("=>"+x);
}
this code takes the string and replaces all "$$" for * but when I launch the test value $$$ in the variable it only replaces a set of $$ that is, it returns me:
apenas um teste*$$
Can anyone tell me what’s wrong here??? thanks for your attention!!!
Thanks!! It worked out fine!
– horacio2019