DEV Community

Discussion on: let vs const - Let's discuss.

Collapse
 
apoorvsingal profile image
Apoorv Singal

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 with let. So, constant for all.