Why was the name 'let' chosen for block-scoped variable declarations in JavaScript?

后端 未结 8 896
醉酒成梦
醉酒成梦 2020-12-07 06:47

I understand why var takes that name - it is variable, const - it is a constant, but what is the meaning behind the name for let, whic

8条回答
  •  借酒劲吻你
    2020-12-07 07:34

    I guess it follows mathematical tradition. In mathematics, it is often said "let x be arbitrary real number" or like that.

提交回复
热议问题