Currently working on making a palindrome function. I have the gist of it. Just can’t get this last part.
I’ve tried so many examples from so many stockoverflow posts and this still doesn’t work for me.
Can someone help me figure out what’s wrong?
var str = "abc's test#s";
str.replace(/[&\/\\#,+()$~%.'":*?<>{}]/g,'_');
console.log(str);