This forum is now read-only. Please use our new forums! Go to forums

0 points
Submitted by buzzoff123
about 10 years

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

Answer 5304246a7c82cacff10006f5

1 vote

Permalink

your missing

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

points
Submitted by Cadet199
about 10 years

1 comments

Cadet199 about 10 years

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

Answer 5304b43952f863be7e001e8b

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.

points
Submitted by Judy
about 10 years

7 comments

abd9876 about 10 years

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

Judy about 10 years

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

abd9876 about 10 years

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 about 10 years

@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 about 10 years

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

conquer almost 10 years

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 almost 10 years

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