Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

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 "
 
PREVIOUS NEXT
Tagged: #remove #numbers #string #javascript
ADD COMMENT
Topic
Name
6+9 =