Skip to main content
added 95 characters in body
Source Link
Michael Borgwardt
  • 51.4k
  • 13
  • 127
  • 178

Using the keyword let to declare constants is not a general convention. The keyword let is used that way in Swift, Rust and Haskell, but in Javascript it denotes a regular variable (just one with a special scope).

As for where the use of let to declare variables come from, it's a very old tradition for mathematical proofs:

A proof in group theory using lots of "let"s

(Source, due to popular demand: https://www.maths.tcd.ie/~dwilkins/LaTeXPrimer/Theorems.html)

Using the keyword let to declare constants is not a general convention. The keyword let is used that way in Swift, but in Javascript it denotes a regular variable (just one with a special scope).

As for where the use of let to declare variables come from, it's a very old tradition for mathematical proofs:

A proof in group theory using lots of "let"s

Using the keyword let to declare constants is not a general convention. The keyword let is used that way in Swift, Rust and Haskell, but in Javascript it denotes a regular variable (just one with a special scope).

As for where the use of let to declare variables come from, it's a very old tradition for mathematical proofs:

A proof in group theory using lots of "let"s

(Source, due to popular demand: https://www.maths.tcd.ie/~dwilkins/LaTeXPrimer/Theorems.html)

added 16 characters in body
Source Link
Michael Borgwardt
  • 51.4k
  • 13
  • 127
  • 178

Using the keyword let to declare constants is not a general convention. The keyword let is used that way in Swift, but in Javascript it denotes a regular variable (just one with a special scope).

As for where the use of let to declare variables come from, it's a very old tradition for mathematical proofs:

enter image description hereA proof in group theory using lots of "let"s

Using the keyword let to declare constants is not a general convention. The keyword let is used that way in Swift, but in Javascript it denotes a regular variable (just one with a special scope).

As for where the use of let to declare variables come from, it's a very old tradition for mathematical proofs:

enter image description here

Using the keyword let to declare constants is not a general convention. The keyword let is used that way in Swift, but in Javascript it denotes a regular variable (just one with a special scope).

As for where the use of let to declare variables come from, it's a very old tradition for mathematical proofs:

A proof in group theory using lots of "let"s

Source Link
Michael Borgwardt
  • 51.4k
  • 13
  • 127
  • 178

Using the keyword let to declare constants is not a general convention. The keyword let is used that way in Swift, but in Javascript it denotes a regular variable (just one with a special scope).

As for where the use of let to declare variables come from, it's a very old tradition for mathematical proofs:

enter image description here