About your problems, I recommend things like clean code, pure functions, OOP, or write tests. Just do small things well. Automate your works properly first.
Another thing is, instead of running your code; debug your code and add breakpoints, instead. Not sure if this can always be done in JavaScript / UI code.
I don't think it even matters that you reference the docs or not.
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
About your problems, I recommend things like clean code, pure functions, OOP, or write tests. Just do small things well. Automate your works properly first.
Another thing is, instead of running your code; debug your code and add breakpoints, instead. Not sure if this can always be done in JavaScript / UI code.
I don't think it even matters that you reference the docs or not.