I want to remove numbers from a string:
questionText = \"1 ding ?\"
I want to replace the number 1 number and the question mar
1
You can use .match && join() methods. .match() returns an array and .join() makes a string
function digitsBeGone(str){ return str.match(/\D/g).join('') }