(1) don't use var anymore, because let and const are more specific - Function-Level Scope
(2) default to const, because it cannot be re-assigned or re-declared - Block-Level Scope - JS engine easily optimize for const variables
(3) use let when re-assigning the variable (e.g. in for loop) - Block-Level Scope
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.
(1) don't use var anymore, because let and const are more specific - Function-Level Scope
(2) default to const, because it cannot be re-assigned or re-declared - Block-Level Scope - JS engine easily optimize for const variables
(3) use let when re-assigning the variable (e.g. in for loop) - Block-Level Scope