Tell us what’s happening:
return str.replace(/[^a-zA-Z0-9\s]/g, ‘’);
This is literally what I have and I have seen the problem take it as correct but the problem will not take this as a correct answer. Also it will not take /[^a-zA-Z0-9???]/ as the correct answer. If someone has something different that works please share but other than this none of this actually works.
Your code so far
<!-- file: index.html -->
/* file: styles.css */
/* file: script.js */
// User Editable Region
const removeSpecialChars = (str) => {
return str.replace(/[^a-zA-Z0-9\s]/g, '');
}
// User Editable Region
Your browser information:
User Agent is: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/116.0.0.0 Safari/537.36
Challenge Information:
Learn localStorage by Building a Todo App - Step 67