Answers for "javascript function to remove numbers from a string"

0

remove all numbers from string javascript

const string = "hello world 123";

// remove all digits from the string
const newString = string.replace(/\d/g, "") // "hello world "
Posted by: Guest on May-30-2021
0

string to number javascript & remove text

var str = "data-123";
str = str.replace("data-", "");
Posted by: Guest on October-13-2021

Code answers related to "javascript function to remove numbers from a string"

Code answers related to "Javascript"

Browse Popular Code Answers by Language