Should "const" be favored over "let"?

Glen Huang curvedmark at gmail.com
Fri Apr 17 05:53:18 UTC 2015


I've completely replaced "var" with "let" in my es 2015 code, but I noticed most variables I introduced never change.

Should I replace them with "const"? Will there be any performance gain for most browsers? If so, should such performance gain be considered micro optimization?


More information about the es-discuss mailing list