'name' is misunderstood as a redefined variable
Author: Lam7150Created Feb 25, 2025Updated Feb 25, 2025
For some reason, the keyword name whenever used as a variable is mischaracterized as a redefined variable.
When running the following code, the error Redefinition of name is thrown:
let name = '';
return 'Hello ' + nameIf I change this to any other variable name, this error is not thrown.
Source: jshint/jshint