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

banner
Close banner
0 points
Submitted by Rob
over 9 years

12/15 [resolved] Animate your name - not letting me move on

var red = [0, 100, 63]; var orange = [40, 100, 60]; var green = [75, 100, 40]; var blue = [196, 77, 55]; var purple = [280, 50, 60];

var myName = “Rob Hirsch”; var letterColors=[red, orange, green]; if(10<3){bubbleShape=”circle”} else{bubbleShape=”square”};

drawName(myName, letterColors);

generic error: “Oops, try again. Write an if/else statement that makes the bubbles circle-shaped. Adapt the if/else statement from the the example on the left.”

Thoughts on what’s up?

Answer 548c644951b88774700047b0

0 votes
Best answer

Permalink

hhmmm, i skipped to next 13/15 with the same code and it worked fine. a bug in the exercise?

points
Submitted by Rob
over 9 years

3 comments

Judy over 9 years

In order for bubbleShape to be assigned “circle”, the value in the ( ) must be true. 10 < 3 is not true. You can change what is in the ( ) so something that IS true.

Rob over 9 years

I guess if I read the directions better, i would have done the right thing! Thanks!

Judy over 9 years

You’re welcome!

Answer 548e08ae93767658b7007349

0 votes

Permalink

The instructions didn’t give us the “condition” for the if/else statement. Not until we looked at the hint did we see the condition that worked.

points
Submitted by Linda
over 9 years