We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents d505f28 + 1934ad8 commit 92cbc78Copy full SHA for 92cbc78
misc_docs/syntax/language_let.mdx
@@ -0,0 +1,31 @@
1
+---
2
+id: "let-binding"
3
+keywords: ["let", "variable"]
4
+name: "let"
5
+summary: "This is the `let binding` keyword."
6
+category: "languageconstructs"
7
8
+
9
+`let` is used to _bind_ values to names, which is similar to assigning values to variables in other languages.
10
11
+### Example
12
13
+<CodeTab labels={["ReScript", "JS Output"]}>
14
15
+```res
16
+let greeting = "hello!"
17
+let score = 10
18
+let newScore = 10 + score
19
+```
20
21
+```js
22
+var newScore = 20;
23
+var greeting = "hello!";
24
+var score = 10;
25
26
27
+</CodeTab>
28
29
+### References
30
31
+* [Let Binding](/docs/manual/latest/let-binding)
0 commit comments