hi, using the jaws for windows screen reader. using windows 11 pro. have tried to pass step 19 in firefox, chrome, and edge. so wondering if the fcc editor has leftover cache in the test / fcc vallidator. have done multiple resets, and have tried researching on google, but it will not pass. is it my code that is wrong to declare the regex variable or is it the editor. wish there was a tool to clear out leftover cache in fcc editor. also tried nvda 2025.3 and windows narrator, same result, so will paste my code, the error and test messages and the link to the step.
frustrated.
marvin.
ps: i cannot see and no invisable characters or hidden trailling spaces. using visual studio code 11 latest version and have not changed any settings. any help.
ps: pasting my code below.
Step 19 Javascritp Code:
// Step 13–18: Calorie Counter JS Setup
const regex = /hello/;
const calorieCounter = document.getElementById('calorie-counter');
const budgetNumberInput = document.getElementById('budget');
const entryDropdown = document.getElementById('entry-dropdown');
const addEntryButton = document.getElementById('add-entry');
const clearButton = document.getElementById('clear');
const output = document.getElementById('output');
let isError = false;
function cleanInputString(str) {
return str.replace(regex, '');
}
Errors:
You should declare a regex variable.