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

Animate Your Name Forum

View Course » View Exercise

28 points
F1b925932efa0879c01067b04d49679b?s=140&d=retro
Submitted by
buzzoff123
over 3 years ago

10/15 [resolved] How do i finish? Please help. This is for school.

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 = "Ely Bendavid";

drawName(myName, letterColors


1 vote

permalink

your missing

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

116 points
B9567d67b884572e1be007956580d353?s=140&d=retro
Submitted by
Cadet199
over 3 years ago

1 Comment

B9567d67b884572e1be007956580d353?s=140&d=retro Cadet199 over 3 years ago

drawName (myName, letterColors = [red, orange, green, blue, purple]);
sorry for the mistake


0 votes

permalink

If this is for exercise 10/15, on line 8, create an array named letterColors. If this isn't exercise 10 then let us know.

3691 points
55df2afa95e3787b9200005e_359368177
Submitted by
Judy
over 3 years ago

7 Comments

63dcf8eab9570b6ab594a62fa71ac8d6?s=140&d=retro abd9876 over 3 years ago

i done that but now its asking to add letterscolors as a secound inoput to the drawname function helppppp

55df2afa95e3787b9200005e_359368177 Judy over 3 years ago

@abd: At the very least, show us your line of code for your drawName function call.

63dcf8eab9570b6ab594a62fa71ac8d6?s=140&d=retro abd9876 over 3 years ago

this what i wrote
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 = "Harry";
lettercolors = [red,orange,green,blue,purple];

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

55df2afa95e3787b9200005e_359368177 Judy over 3 years ago

@abd: You didn't need to alter your drawname(myName,letterColors); line. There is no need to repeat the [ ... ] array there. You do need to use the expected upper/lower case letters in your variable names though.

55df2afa95e3787b9200005e_359368177 Judy over 3 years ago

Hi Ely, it looks like you have a working "Animate Your Name" now so I've marked your question as [resolved]. Looks good!

Picture conquer over 3 years ago

i wrote 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 = "Hehehe";

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

but it keep telling me to use the variables myName and letterColors in the drawName() function, like this: drawName(myName, letterColors).

I'm confused

55df2afa95e3787b9200005e_359368177 Judy over 3 years ago

@conquer, your drawName line should look exactly like this: drawName(myName, letterColors). You are missing a line that look like: var letterColors = [red, orange ... whatever colors you like];