If you set your IDE up to automatically insert semicolons / make your CI tools reject code that would have semicolons inserted automatically, you can avoid these mistakes.
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.
JavaScript explicitly has rules for automatically inserting semicolons. Hence, they aren't necessary.
However, the rules aren't very good, in that they are likely to do the wrong thing.
For example, consider the following:
It doesn't do what you mean, because the semicolon insertion rules say to put a semicolon here:
Your expression's result is lost!
If you set your IDE up to automatically insert semicolons / make your CI tools reject code that would have semicolons inserted automatically, you can avoid these mistakes.