Build a Todo App using Local Storage - Step 61

Tell us what’s happening:

On Step 61 the test is failing when using the nullish coealescing operator (??), but passing with logical OR (||). Surely the below code is acceptable in practice in this instance?

Your code so far

<!-- file: index.html -->

/* file: styles.css */

/* file: script.js */
// User Editable Region
const taskData = JSON.parse(localStorage.getItem("data")) ?? [];
// User Editable Region

Your browser information:

User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/154.0.0.0 Safari/537.36

Challenge Information:

Build a Todo App using Local Storage - Step 61

GitHub Link: freeCodeCamp/curriculum/challenges/english/blocks/workshop-todo-app/650048b0764f9c1b798200e2.md at main · freeCodeCamp/freeCodeCamp · GitHub

Hi @lukegrhodes,

Did you try testing on your local system to see?

The instructions actually bolded the word OR so the tests are checking for that operator.

Happy coding

if you think your solution should be accepted please create an issue on github, and curriculum maintainers will consider your proposal