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!
Just like in CSS, variables can be changed to alter the output of a certain block of code.
In this lesson, we will change a variable in a JavaScript function, making Bamboo spin around twice.
Your task is to drag a rotate function from the actions container into the sequence container and then click on it to change the rotation amount from 360 to 720 degress. 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 rotate function to the sequence container and changed the rotation amount to 720 degrees. 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 6: Rotate Variables
Sequence