Hi CreCo! I’ve been in the situation of turning my code upside down, digging for hours (literaly), just to find a spelling mistake like that. Several times !
What I want to say is: format your code so that is easier to read
This breaks down to many things, including:
- consistently use camelCase or snake_case when making up variable names with multiple words
- use meaningful variable names, avoiding things like
a
orx
- use indentation consistently
Also, when posting code on the forum, remember to put it between three backticks:
```
your code here
```
This helps, among the other things, to preserve your indentation, so that your code is also easier to read here on the forum!
There are also some good tips about writing code here:
Love