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

Animate Your Name Forum

View Course

58 points
F9c826505c7dd8e80732ee11a0dd9ce3?s=140&d=retro
Submitted by
jonnynator
almost 2 years ago

10/15 Animate your name

}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 = "Jonny";
letterColors=(red,orange,green,purple,blue);

drawName(myName, letterColors);

-Thats how mine looks like. I've got no clue, what I did wrong :(
Thanks to everyone helping :)


0 votes

permalink

Here i dont now why but this will works:

var red = [0, 100, 63];
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 = "Jonny";

letterColors=(red,orange,green,purple,blue);

drawName(myName,letterColors);

drawName(myName, letterColors=[red, orange, green, blue, purple]);

156 points
E873d68a215785742a5c94d7c3f8f47b?s=140&d=retro
Submitted by
Justus Heymann
almost 2 years ago


0 votes

permalink

Hi jonnynator,

Your problem is here:

letterColors=(red,orange,green,purple,blue);

Arrays must have square brackets.

3691 points
55df2afa95e3787b9200005e_359368177
Submitted by
Judy
almost 2 years ago


0 votes

permalink

letterColors=(red,orange,green,purple,blue); change ( ) to [ ] , and make sure u put a space after your comma

91 points
37a664d2dd1e33b17696ad707a932f21?s=140&d=retro
Submitted by
samuel oyeson
almost 2 years ago


0 votes

permalink

how do u write name within quotes

15 points
3a77af50993922cab7e08cc5abf32db6?s=140&d=retro
Submitted by
abdur26
almost 2 years ago

2 Comments

37a664d2dd1e33b17696ad707a932f21?s=140&d=retro samuel oyeson almost 2 years ago

"name"

3a77af50993922cab7e08cc5abf32db6?s=140&d=retro abdur26 almost 2 years ago

thnks


0 votes

permalink

I would like to ask about what the numbers in the array represent. Like is it RGB or what?

1068 points
843b70f04a297a35781c735f5cbd48c4?s=140&d=retro
Submitted by
StealthTim
almost 2 years ago

2 Comments

55df2afa95e3787b9200005e_359368177 Judy almost 2 years ago

Hi StealthTim, you might be interested in this: https://www.codecademy.com/forum_questions/53385d4e8c1ccca3de00a9a6

843b70f04a297a35781c735f5cbd48c4?s=140&d=retro StealthTim almost 2 years ago

Thanks for the help!