-
Notifications
You must be signed in to change notification settings - Fork 0
Variables
KikoPT1234 edited this page Jun 5, 2020
·
2 revisions
Like JavaScript, you can use the let
and const
keywords to create changeable and constant variables respectively. There is no var
keyword, however.
For example, to create a variable burgersEaten
with the value of 5, you can do
const burgersEaten = 5
or, if you plan to change it later,
let burgersEaten = 5