The let keyword
Learn about the let keyword to store data for future reference.
We'll cover the following...
We'll cover the following...
Declaration
We can create variables with the let
keyword. Think of a variable like a drawer. let
declares a variable, which means to you that a drawer is created with a handle.
Press + to interact
let myDrawer;
You can put a value in your drawer:
Press + to interact
myDrawer="$1.000";
In order to access the value, you have to grab the handle of the box and open it. In this example, you have a drawer called myDrawer
. It contains a string written ‘$1.000’
on it.
To access your thousand bucks, you have ...