Update types.md for constants (#3899)

Update types.md
This commit is contained in:
Jess Frazelle
2024-09-16 11:50:59 -07:00
committed by GitHub
parent b6aba2f29c
commit c4ff1c2ef1

View File

@ -13,14 +13,16 @@ arrays can hold objects and vice versa.
`true` or `false` work when defining values. `true` or `false` work when defining values.
## Variable declaration ## Constant declaration
Variables are defined with the `let` keyword like so: Constants are defined with the `let` keyword like so:
``` ```
let myBool = false let myBool = false
``` ```
Currently you cannot redeclare a constant.
## Array ## Array
An array is defined with `[]` braces. What is inside the brackets can An array is defined with `[]` braces. What is inside the brackets can