I recommend always create variables with the const keyword. This is because variables created with a const keyword cannot be reassigned. You'll get an error if you try to assign a new value to them.
The const keyword creates constants, not variables.
They're not really "constants" in a strict sense because, even though you can't reassign, you can modify the referenced value (if it's an object). For instance:
constx={a:1};// this will failx={a:2};// but this will passx.a=2;
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.
Just noticed you may want to rewrite this bit:
The
const
keyword creates constants, not variables.They're not really "constants" in a strict sense because, even though you can't reassign, you can modify the referenced value (if it's an object). For instance: