javascript strip all numbers end of string code example
Example: 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 "
const string = "hello world 123";
// remove all digits from the string
const newString = string.replace(/\d/g, "") // "hello world "