Welcome Back!
Login to have access to all of Codemoji's features, including all of our HTML, CSS, and JS lessons!
Welcome Back!
Google Login allows you to connect with your classroom in the click of a button!
Welcome to Codemoji!
Welcome to Codemoji!
Welcome to Codemoji!
Variables that a function requires in order to run are called parameters. The variables changed in these lessons are parameters.
In this lesson, we will change a variable in a JavaScript function, making Bamboo move 300 units to the right.
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!
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.
Congratulations! You've just programmed Bamboo to do an animation! Click the X in the upper right corner to exit this screen.
Lesson 7: Move Variables
Sequence