Answers for "how to remove dash from string in javascript"

0

how to remove dash from string in javascript

var str="185-51-671";
var newStr = str.replace(/-/g, "");
Posted by: Guest on May-26-2021

Code answers related to "how to remove dash from string in javascript"

Code answers related to "Javascript"

Browse Popular Code Answers by Language