in string add number javascript code example
Example 1: javascript 1 + "1"
console.log(10+"1"); //101
console.log(10-"1"); //9
Example 2: js replace all number
var str = "22V2isit W33Scho4ols!";
var n = str.replace(new RegExp("[0-9]", "g"), "");