Learn localStorage by Building a Todo App - Step 67

Hi, if I could get help would be great. Countless have been the times I get stuck because of the poor explanation of what’s required. Code is working, but the FCC platform somehow is not having it.

const removeSpecialChars = (str) => {
  return str.replaceAll(/[^A-Za-z0-9]/g, '');
  };

const inputString = `abajfeiBa@%$#_""''`;

console.log(removeSpecialChars(inputString));

please share the link to the step

the test that is failing checks this function call:

removeSpecialChars("quincy's dance party")

the output of the function is "quincysdanceparty", but the expected is "quincys dance party"

1 Like