This forum is now read-only. Please use our new forums at

Animate Your Name Forum

View Course

29 points
Submitted by
about 3 years ago

12/15 I don't understand

Please help me.

1 vote


You can have your program do different things depending on whether a condition of your choosing is true or false.

Here is how if/else statements work:

if (this condition is true) {
    do this thing;
} else {
    do this other thing;

Here is the example for this exercise. It says that if 10 < 3 is true then your shapes will be circles, otherwise they will be squares.

if (10 < 3) {
    bubbleShape = "circle"; 
} else {  
    bubbleShape = "square";

You task is to change that code so that your shapes are circles.

Are you able to see what needs to be done now?

3691 points
Submitted by
about 3 years ago