You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Jun 15, 2019. It is now read-only.
let allows you to declare variables that are limited in scope to the block, statement, or expression on which it is used. This is unlike the var keyword, which defines a variable globally, or locally to an entire function regardless of block scope.
In other words, let is a bit more specific and should prevent some reassignment bugs and that.
So no more
var
and insteadlet
andconst
:const
for variables that will not be updated.let
for variables that (possibly) will be updated.Note:
const
doesn't mean immutable as properties in aconst
object can be changed. To avoid confusion I suggest using let for objects.The text was updated successfully, but these errors were encountered: