For clarification, <varname> = throws an error in 'strict mode' which means you can't use them inside type="module" scripts, as they are in strict mode by default (source: developer.mozilla.org/en-US/docs/W...).
Definitely - and that's one reason using 'strict' is a massively good thing to do :D Or, perhaps better, use TypeScript and benefit from a more deliberate variable declaration syntax.
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.
For clarification,
<varname> =
throws an error in'strict mode'
which means you can't use them insidetype="module"
scripts, as they are in strict mode by default (source: developer.mozilla.org/en-US/docs/W...).Definitely - and that's one reason using 'strict' is a massively good thing to do :D Or, perhaps better, use TypeScript and benefit from a more deliberate variable declaration syntax.