let
declarations
By now you’ve figured out that var
has some problems, which is precisely why let
statements were introduced. Apart from the keyword used, let
statements are written the same way var
statements are.
let hello = "Hello!";
The key difference is not in the syntax, but in the semantics, which we’ll now dive into.
Please login to continue.