This forum is now read-only. Please use our new forums! Go to forums

0 points
Submitted by WaCez
almost 10 years

12/15 I don't understand

Please help me.

Answer 535288ab631fe916bb001a3c

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?

points
Submitted by Judy
almost 10 years