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

0 points
Submitted by Brady Hyde
about 9 years

12/15 I don't get the if/else.

Why do i have to do the if/else statement when i can just go:

bubbleShape= “circle”;

Anyone able to explain to me please.

And why (10>3) are you able (if you want to) go (11230>1)

thanks :)

Answer 55087adad3292f0bfe00007e

0 votes

Permalink

Hi Brady,

You don’t have to do the if/else - in real life. Here though, the exercise is trying to introduce you to if/else statements.

It doesn’t matter exactly what condition you use, as long as you get the right result.

points
Submitted by Judy
about 9 years

Answer 55559fcbe39efefaa900005b

0 votes

Permalink

I thought it would be useful to implement math.random in your if/else statement and make the bubbles random :)

points
Submitted by sina_hb
almost 9 years

1 comments

Judy almost 9 years

That would have been more fun!