replaceAll() is not a function

replaceAll() does not exist in JavaScript. Use this approach instead:

posNumbChange = posNumbString.replace(/-/g, 'i');
3 Likes