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

Animate Your Name Forum

View Course

605 points
589c9f7fe12813f23d0003fd_344222934
Submitted by
minasf
about 2 years ago

12/15 [resolved] I can't get past this

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 = "Minas";
var letterColors = [red, orange, green, blue, purple];

if(10 < 3 ) {
bubbleShape = ' square ';
}

else {
bubbleShape = ' circle ';
}

drawName(myName, letterColors)

This is my code. Could somebody help me? I don't understand the if/else statement...at least I think.


0 votes

permalink

Hi Camillita,

You are having a problem because ' circle ' is not the same string as 'circle'. Inside a string, spaces are counted just like any other characters.

3692 points
55df2afa95e3787b9200005e_359368177
Submitted by
Judy
about 2 years ago


0 votes

permalink

Thanks man, I'm saved!!!!!!

605 points
589c9f7fe12813f23d0003fd_344222934
Submitted by
minasf
about 2 years ago

1 Comment

55df2afa95e3787b9200005e_359368177 Judy about 2 years ago

You're welcome!