We all are familiar with the difference between const, let and var. If not, please read this.
Var, let and ...
For further actions, you may consider blocking this person and/or reporting abuse
constant
for all. It's useful information to the developer about the future of the value (that it won't change). It follows that seeinglet
guarantees that the value will change because it is necessary.The additional information can be helpful.
Agreed.
CONSTANT FOR ALL team member checking in.
Nice. I got a teammate. âš¡
I believe, the best should be CONSTANT FOR ALL, and not only constant for all, but also IMMUTABILITY. That is, avoid mutation, whether instance or memory address.
I like that.
Would you write about arrow functions?
Yes! What would you like to know from me?
How to use them in general
DM me @kumar_abhirup on Twitter about this :)
Well, variables delcared using
const
keyword are allocated on stack instead of the heap (unless you're using closures), making them way faster than the variables declared withlet
. So, constant for all.I don't understand the hype of "arrow function" and "const" guy checks in. I understand the need but not the hype.
const for all. Though I do agree to Dan's point that it can be confusing for beginner when you're dealing with objects.
🔥