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

Animate Your Name Forum

View Course » View Exercise

45 points
2ece92edb2c7ad886b9e86d8cc359262?s=140&d=retro
Submitted by
FunkySushi
over 3 years ago

12/15 [resolved]

I really don't know what I did wrong

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 = "Funky Sushi";
var letterColors = [orange, red, blue, purple]
if(15 > 5) {
bubbleShape = "circle";
else {
bubbleShape = "square";
}

drawName(myName, letterColors);


0 votes

permalink

You are just missing one }.

if (15 > 5) {
    bubbleShape = "circle";
} else {
    bubbleShape = "square";
}

3691 points
55df2afa95e3787b9200005e_359368177
Submitted by
Judy
over 3 years ago

4 Comments

532fc2de52f8639cd3009028_956952433 levidawg over 3 years ago

me to still don't understand

55df2afa95e3787b9200005e_359368177 Judy over 3 years ago

@levidawg, are you saying you don't see the difference between Funky's if/else statement and the one posted? Or are you saying something else entirely?

2ece92edb2c7ad886b9e86d8cc359262?s=140&d=retro FunkySushi over 3 years ago

Thanks for helping

55df2afa95e3787b9200005e_359368177 Judy over 3 years ago

You're welcome.


0 votes

permalink

Hi Funky, I see you have a working Animate Your Name codebit now so I'm marking your question as [resolved] - good work!

3691 points
55df2afa95e3787b9200005e_359368177
Submitted by
Judy
over 3 years ago