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

Animate Your Name Forum

View Course » View Exercise

18 points
D04acf417dadb2a04378ab4e1eb275d0?s=140&d=retro
Submitted by
jayneg8
over 3 years ago

12/15 [resolved] Write an if/else statement that makes the bubbles circle-shaped

this is my code and I'm not sure what's 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 = "Jayne";
letterColors = [red, purple, blue] ;
if (10 > 3) {
bubbleShape = "circle" ;
}

else ; {
bubbleShape = "square";
}

drawName(myName, letterColors);


0 votes

Best answer

permalink

Hi Jayne, you have somehow managed to sneak a semicolon into the middle of your else code, else ; { - just remove that ; completely,

3691 points
55df2afa95e3787b9200005e_359368177
Submitted by
Judy
over 3 years ago

4 Comments

D04acf417dadb2a04378ab4e1eb275d0?s=140&d=retro jayneg8 over 3 years ago

thanks so much!!

55df2afa95e3787b9200005e_359368177 Judy over 3 years ago

You're welcome. Your codebit looks great!

E434961d75be0c94ee85d70e21dfb7bf?s=140&d=retro anaya-block-diva over 3 years ago

mind looks some what the same but I don't have the ; it keeps saying write an if/else statement what do they mean?

55df2afa95e3787b9200005e_359368177 Judy over 3 years ago

Hi Anaya, copy/paste your code into the "Add an answer" box or use the Ask a question" button.