diff --git a/misc_docs/syntax/language_let.mdx b/misc_docs/syntax/language_let.mdx new file mode 100644 index 000000000..56f06e78e --- /dev/null +++ b/misc_docs/syntax/language_let.mdx @@ -0,0 +1,31 @@ +--- +id: "let-binding" +keywords: ["let", "variable"] +name: "let" +summary: "This is the `let binding` keyword." +category: "languageconstructs" +--- + +`let` is used to _bind_ values to names, which is similar to assigning values to variables in other languages. + +### Example + + + +```res +let greeting = "hello!" +let score = 10 +let newScore = 10 + score +``` + +```js +var newScore = 20; +var greeting = "hello!"; +var score = 10; +``` + + + +### References + +* [Let Binding](/docs/manual/latest/let-binding)