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

Animate Your Name Forum

View Course

29 points
874150f30504cac502c2487732e15048?s=140&d=retro
Submitted by
WaCez
about 3 years ago

12/15 I don't understand

Please help me.


1 vote

permalink

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
55df2afa95e3787b9200005e_359368177
Submitted by
Judy
about 3 years ago