I am working my way through watch and code javascript course. I am running into trouble trying to get a toggle function to work correctly.
When I run the code with debugger position is defined as NaN and the variable todo is undefined. Funny enough the toggle all function I have works without issue. I am thinking maybe I made a spelling or formatting mistake somewhere but I’ve been staring at it so long it is starting to blur together.
Here is a link to paste bin
Any help would be greatly appreciated!