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

Animate Your Name Forum

View Course » View Exercise

26 points
55311e5de39efe50e50001b1_931389034
Submitted by
bradley mahurin
about 2 years ago

12/15 What is wrong with 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 myName = "bradley";
var letterColors = [red, orange, green, black, purple] 
bubbleShape = "square";
if(15 > 5) {
    bubbleShape = "circle"
}


drawName(myName, letterColors);

1 vote

permalink

Hi bradley,

The code checker is looking for an if/else statement. It is not finding the else part in your code.

3691 points
55df2afa95e3787b9200005e_359368177
Submitted by
Judy
about 2 years ago


1 vote

permalink

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

!!! -> else

313 points
511dfe31e89d8b31ab0049ac_538096772
Submitted by
Андрей Титов
almost 2 years ago


1 vote

permalink

Mate, you're missing the else block!

96 points
55897f7b9113cbbb5300017e_577533892
Submitted by
ace1999
almost 2 years ago