Codecademy

Sign In Create Account
01/07
An Explanation Is Needed

Check out the piece of code provided. You can see we have an object Hello which contains the function Name. This is a structure you will see a lot in this project!

Objects are a great way of grouping functions and variables. They may seem to be more unnecessary work at this point. But in more complex pieces of code they create consistent structures which are easier to understand and use. For example, they can be used in functions just like variables. They are really important!

To access a function within an object, use the syntax ObjectName.FunctionName. In this case, we'd type in Hello.Name. We're using our old friend dot notation!

Create a variable called myName with your name as its value and then use it in calling the Hello.Name function.

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