In step 14-20 of “Learn localStorage by Building a Todo App”, you test if you are successfully manipulating the value of taskObj.id by logging it to the console. The problem is that you are never told to change console.log(taskObj) to console.log(taskObj.id).
Even when you make this change yourself, every time you advance to the next step you have to rewrite “.id” on the end of taskObj because it resets the code to console.log(taskObj) every time.
It keeps telling you that you can just run the function and you’ll see what taskObj.id is to check your work, but that just isn’t true unless you edit the function.
Sure, it’s a small problem, but I assume it would also be a small fix to do.
you are working on building the taskObj object. Writing taskObj.id means that at step 19 you don’t see the other properties you are adding. I don’t see any issue here
I should’ve said steps 14-18 because on 19 you are supposed to test the whole object, but before that, it tells you console.log(taskObj) will test taskObj.id which is wrong. For example, on step 15, you are told this:
“To see the new result, click on the "Add New Task" button. Then add a title of WALK DOG and click on the "Add Task" button. Open up the console to see the result of ['walk', 'dog']”
In reality clicking on the "Add New Task" button will log: { id: [ 'walk dog' ] }.
Clicking "Add New Task" only logs the result ['walk', 'dog']" if you change the console.log.
console.log(taskObj) does work when testing the whole object, just not when testing it’s ID, which you’re told to do.
I still don’t see the issue, it’s a small object with a single property, you can easily see the id there, if it was an humongous one where the property would get lost maybe it would make sense
It’s just that it seems like it’s saying that what will be logged is directly ['walk', 'dog'] in my example, or specifically the id, when in actuality the whole object is what gets logged.
If it was saying that you will be able to see that the id in the object is ['walk', 'dog'], then I just misunderstood it and there is of course no mistake. I just thought it was telling me that ['walk', 'dog'] or whatever else the id was at the step, would be exactly the thing logged, due to the wording.
maybe the wording could be adjusted, but imho the intent was to always log the object
Thank you for helping make FCC better. Bugs can be reported as GitHub Issues. Whenever reporting a bug, please check first that there isn’t already an issue for it and provide as much detail as possible.