Codecademy

Sign In Create Account
01/07
Forgetful

Before, you typed your name in but didn't save it. You can fix that with variables! Variables are ways to store values to use later.

Since we're talking about your name, let's call our first variable myName. We'll explain why the m is lowercase and the n is uppercased in a bit.

But before we declare the variable (we'll talk about this in the next exercise), try accessing it by typing myName to see what happens.

Stuck? Get a hint!Hint

To do this exercise, type 'myName' in the terminal and press enter. You'll soon see that you're not able to access 'myName'.

Save & Submit Code Reset Code
Back to editor

Start Here

Each lesson starts here. Read the explanation, then follow the instructions underneath. If you get stuck, you can click on the "Hint" for help.

Enter your Code

Type your response to the instructions here, in your code editor.

Submit!

Ready to see if your code does what it should? Click "Save + Submit" to run and check your code!

Click "Save + Submit" to run your code! Your code’s output will pop up on the screen.

See What it Does

This is the terminal. When you submit your code, it will run your code and display the result here.

Sign in to Codecademy