Next Lesson
Close
Checkpoint
Choose the emoji below that represents vertical distance.
vertical
color
book
Submit Answer
Close
Create an Account
Student

Student

Learn the basics of coding while building your own website
Parent

Parent

Track your student's progress and assign them challanges
Teacher

Teacher

Create a classroom and assign lessons to your students
Already have an account?
Log In
Close
I Am A
Student

Student

Learn the basics of coding while building your own website
Parent

Parent

Track your student's progress and assign them challanges
Teacher

Teacher

Create a classroom and assign lessons to your students
Don't have a Google account?
Log In
Close
Log In

Welcome Back!

Login to have access to all of Codemoji's features, including all of our HTML, CSS, and JS lessons!

Forgot password?
Don't have an account?
Sign Up
Close
Google Log In

Welcome Back!

Google Login allows you to connect with your classroom in the click of a button!

Don't have a Google account?
Log In
Close
Create a Student Account

Welcome to Codemoji!

Not a student? Click here
Already have an account?
Log In
Close
Create a Parent Account

Welcome to Codemoji!

Not a parent? Click here
Already have an account?
Log In
Close
Create a Teacher Account

Welcome to Codemoji!

Not a teacher? Click here
Already have an account?
Log In
Next Lesson
Lesson 7: Move Variables

Variables that a function requires in order to run are called parameters. The variables changed in these lessons are parameters.

Next

In this lesson, we will change a variable in a JavaScript function, making Bamboo move 300 units to the right.

Next

Your task is to drag a move function from the actions container into the sequence container and then click on it to change the horizontal move amount from 100 to 300 pixels. Once you have finished your task, hit run to see the function you've just programmed!

Got it!

Sorry, that's not correct! Make sure that you have added a move function to the sequence container and changed the horizontal move amount to 300 pixels. If you need a reminder about your task, click on the white triangle in the bottom left corner of the screen to bring up the tip again.


Try Again

Congratulations! You've just programmed Bamboo to do an animation! Click the X in the upper right corner to exit this screen.

View Animation

Lesson 7: Move Variables

Drop Here To Delete

Sequence

Run
Reset
X: 0, Y: 0
Play around in the playground.