Rotate your device.
Turn off orientation lock in device settings.
Your browser is not supported. Please upgrade your browser to one of our supported browsers. You can try viewing the page, but expect functionality to be broken.
CS in Algebra curriculum and content is being deprecated. Within the next few months, this lab will no longer be available. Please check out Bootstrap: Algebra instead. Learn More.
Rotate your device.
Turn off orientation lock in device settings.
Edit this program so I'll remove all the piles on my field.
This is a modal window.
Beginning of dialog window. Escape will cancel and close the window.
End of dialog window.
Hi, I'm Janete, and I'm an engineer at Zynga.
What if we want to draw a bunch of triangles and have their lengths be different sizes?
We could write all that code out by hand or we can use a function with parameters.
To do this, click the blue star on the "draw a triangle" function definition. Then drag "input name" into the "input" block.
Then if you write "length" in the spot where it says "x" and press "Enter" you'll create a length input for your function.
Then click on the star. Now, you want to click on the variables category and drag the "length" block into the "move forward" block of your function definition. And drag away the old number block.
To use your function with parameters, click on the functions category and drag out your "draw a triangle with length" function.
Now you can use the math block to input different numbers to draw triangles of different sizes.