Skip to content
Sign upLog in
← Back to Community

Why does my function work for every number but 55

Profile icon
Billy3456789

I have a function that is supposed to find all the possible moves for a rook if you run it and you can pick which square it's on by changing the argument. Although it doesn't seem to work when 55 gets put in. It gives the error cannot read property classList of type null. Please help

Voters
Profile icon
Billy3456789
Comments
hotnewtop
Profile icon
Billy3456789

Never mind I fixed it