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

Animate Your Name Forum

View Course » View Exercise

99 points
548378969113cbde03000264_21721078
Submitted by
minecraftcoder990
almost 3 years ago

10/14 Make sure you have defined all the variables

Can someone help me out on part 10 of 15 for animating your name?

I don't know what I'm doing wrong I've tried and tried but it keep saying "oops, try again. make sure you have defined all the variables and i did but it wont stop saying that someone help me please!!!!!!!!!!!!!!!!!


2 votes

permalink

As long as you:

  1. set myName equal to your name
  2. create an array named letterColors that stores a list containing some of the five colors available. For example, letterColors = [red, orange, green]

then you should be good.

Please show us what you've tried so far.

3691 points
55df2afa95e3787b9200005e_359368177
Submitted by
Judy
almost 3 years ago

4 Comments

4dcc1ace04f065fe188afcccc63d2976?s=140&d=retro Charlotte Bailey almost 3 years ago

Having the same issue!!
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 = "Charlotte";
letterColors = [red, orange, green, blue, purple]

55df2afa95e3787b9200005e_359368177 Judy almost 3 years ago

Charlotte, I've just copy/pasted your code and it works perfectly for me. Could you try using the Reset Code button and then retyping your code please?

5390cf33548c35e00e00022b_28529257 mike over 2 years ago

it works

527c22aa80ff33e2140002df_526066142 hunter proffitt over 2 years ago

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 = "hunter";
lettercolors = [red, blue, green, purple, orange,];

drawName(myName, [red,blue,green]);


1 vote

permalink

ok but i have another problem when i type in the code on a codebit it will not work and i promised my little bro that i would animate his name tomorrow for his b-day help!

91 points
5216642e548c35689a000182_532040381
Submitted by
Ariel Yaari
almost 3 years ago

1 Comment

55df2afa95e3787b9200005e_359368177 Judy almost 3 years ago

Give us the link to your codebit and we'll help spot the problem Ariel.


1 vote

permalink

I had a similar problem. I accidentally wrote "lettersColors" instead of "letterColors"

Also American spelling is annoying.

147 points
546ea83b9c4e9d102e000a67_749594520
Submitted by
Bede
over 2 years ago


0 votes

permalink

i figured out what i was doing wrong and finished the course...

91 points
5216642e548c35689a000182_532040381
Submitted by
Ariel Yaari
almost 3 years ago

1 Comment

55df2afa95e3787b9200005e_359368177 Judy almost 3 years ago

Good work Ariel.


0 votes

permalink

Yeah... american spelling (color)...

552 points
52121097abf8215dea001b43_846432392
Submitted by
Brendan Clohesy
almost 3 years ago


0 votes

permalink

Uh ya... i am not american i was born in the u.s yes. but i am semetic and hispanic

91 points
5216642e548c35689a000182_532040381
Submitted by
Ariel Yaari
almost 3 years ago