The good IDE is key for me (I am dyslexic too). I find Jetbrains' products to be a saviour with all the autocomplete and intellisense.
I don't have to worry if I've spelled the variable incorrectly or (more frequently) used a synonym instead of the word I first used; autocomplete catches it.
When I have to work with large JavaScript codebases I always move for TypeScript for that very reason.
It won’t compile if I’ve done something like that and will happily shout the line at me that (paraphrased example):
Etc, etc.And good integration with an editor or IDE will produce these errors without needing to run the compile step which saves a lot of time and frustration.