Animate Your Name Forum View Course » View Exercise

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

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

1 Comment

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

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.

abd9876 over 3 years ago

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

Judy over 3 years ago

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

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] );

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.

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!

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

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];