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

Animate Your Name Forum

View Course » View Exercise

309 points
52d45f9c9c4e9dd9a400510b_354082081
Submitted by
StampyCatFan101
over 3 years ago

13/15 [resolved] Make sure you have defined all the variables required from you!

My code: **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 yellow = [60, 102, 63];
var myName = "Stampyfan";

var bubbleShape

if(10 > 3) {
bubbleShape = "circle";
}

else {
bubbleShape = "square";
}

letterColors = [red,orange,yellow,green,blue,purple]

drawName(myName, letterColors);

var bounceName();** My error: *Oops, try again. Make sure you have defined all the variables required from you! * Please help i cant get it right!


4 votes

permalink

:(

309 points
52d45f9c9c4e9dd9a400510b_354082081
Submitted by
StampyCatFan101
over 3 years ago

1 Comment

52d45f9c9c4e9dd9a400510b_354082081 StampyCatFan101 over 3 years ago

I cant do it


1 vote

permalink

Ooops! i fixed it. I took away the var from bounceName()!

309 points
52d45f9c9c4e9dd9a400510b_354082081
Submitted by
StampyCatFan101
over 3 years ago