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

Animate Your Name Forum

View Course » View Exercise

142 points
5483001286f5527f060008c3_54949104
Submitted by
Doruk
almost 3 years ago

?/15 [resolved] Why does it say "Oops, try again. Make sure you have defined all the variables!"?

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 = "doruk";
letterColors = [red,orange,green,blue,purple]
drawName(myName, letterColors);
if ( 15=15 ) {
    bubbleShape = "circle";
}
else {
    bubbleShape = "square";
}

1 vote

permalink

Hi Doruk,

15=15 is invalid.

= isn't a comparison operator. Here is a list of comparison operators: http://www.codecademy.com/glossary/javascript/booleans#comparison-operators

3692 points
55df2afa95e3787b9200005e_359368177
Submitted by
Judy
almost 3 years ago

2 Comments

5483001286f5527f060008c3_54949104 Doruk almost 3 years ago

Thank you for your response, it worked!

55df2afa95e3787b9200005e_359368177 Judy almost 3 years ago

You're welcome!