Ask coding questions

← Back to all posts
Why does my function work for every number but 55
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
Billy3456789
Comments
hotnewtop
Billy3456789

Never mind I fixed it