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

0 points
Submitted by Katie Buckman
over 8 years

10/15 [resolved] 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 = “Katie”; var lettercolors = [ red,orange,green,blue,purple ];

drawName = (myName,letterColors);

I have tried changing things everywhere, but I am not sure where I am off? Is there something I am missing or did too much off?

I get the errors “ Oops, try again. Make sure you have defined all the variables!” and ‘Uncaught ReferenceError: letterColors is not defined”

Answer 55a5c362d3292fa6d50001f7

0 votes

Permalink

Katie,

I got stuck here too. Try using a capital C in letterColors and then putting a space after each comma that you have after the colors [red, orange, green, blue, purple];

Jackie

points
over 8 years

Answer 55a6978d76b8fe778f00064a

0 votes

Permalink

Just remember that Java is very sensitive, so if you created a variable called lettercolors, you can’t then expect the program to recognize it as letterColors. It can works with all lower case or the latter, but it is usually expressed as a capital letter every time a new word in the variable starts :) Good luck!

points
Submitted by Karen
over 8 years

Answer 55a7321776b8fe198d0003b5

0 votes

Permalink

Thank you for your help! I got it and shouted EUREKA! :)

Katie

points
Submitted by Katie Buckman
over 8 years

1 comments

Karen over 8 years

Glad you did it! :)