Skip to main content
let

let

1 7.7
A word used in code to create a name that holds a value only inside a part of the program
  • noun
  • /lɛt/
  • Specialized
translation icon : let
  • The syntax to declare a variable with let allows for better control of the scope in your code.

Examples

  • In JavaScript, you can use let to declare a variable with block scope.

  • To create a constant in programming, you might use let for variable declaration within a function.

  • So we're going to let S be a set.

  • Now let P be fixed and let N go to Infinity.

  • OK, so here I'm saying if we let N equal to the size of Z.

  • So I'm going to say let publisher equal our session.

  • Well, when I did this, I let X equal sine of X, correct?

  • Another choice is to let X equals vy.

  • Now let us take a closer look at these riders of Rohan.

  • So let's say I have a var like hello, and it's an optional, optional string, let's say, and I want the string.

Idioms

185 3.4

To say that one thing is even less likely or possible than another

let me tell you
  • Informal
64 4.4

To start a story or show that what follows is important

21 3.0

To show that something is even less likely than what was just mentioned

Forgive past fights so they do not affect the present

8 5.6

Relax and enjoy yourself after being serious or busy

To accept what happens and not try to change the result

To tell a secret that should be kept

4 6.9

Avoid talking about old problems to prevent more arguments

let me guess
  • Informal
3 4.6

Said when you are about to say what you think happened

Give up control and trust God or a higher power

Wait too long to act and miss a chance

A playful goodnight wish hoping someone has good dreams

To let strong, uncontrolled feelings make your life worse

To allow someone to act freely after a time of control

5.4

To say this to show you want it to snow

To ask or hope, often in prayer, not to have a hard time

Show your true self to others, even if it seems strange

To wish someone a good night as a joke

Compounds

1 4.7

A case where someone is excused from punishment, often only warned

let-off
  • Specialized
1 9.4

The percentage a compound bow's pull drops at full draw, making it easier to hold

Surface Forms

let singular
lets plural

Etymology

Let in programming borrows the everyday verb let meaning 'allow'. Think of it as saying 'allow this name here', which is why a let variable only works inside a small part of the code.