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

Animate Your Name Forum

View Course

215 points
554ff056e39efe32e50001d1_439731315
Submitted by
coding774
over 2 years ago

10/15 issue

Hey

It refuses to budge on screen 10 saying i haven't defined the variables

var red = [7, 10, 13];
var orange = [49, 12, 6];
var green = [77, 13, 4];
var blue = [199, 770, 535];
var purple = [283, 5, 62];
drawName=("Maddison")
letterColors=["red,orange,green,blue,purple"]

what am i doing wrong??


0 votes

permalink

You are using quotes to add array elements - it is wrong. Delete the quotes inside, i mean:
["red ... purple"]

right example would be:

var red = [7, 10, 13];
var orange = [49, 12, 6];
var green = [77, 13, 4];
var blue = [199, 770, 535];
var purple = [283, 5, 62];
var myName = "Maddison";
letterColors=[ red,orange,green,blue,purple ];
drawName=(myName, letterColors);

153 points
55c77dd89376767ec6000226_400546643
Submitted by
Дмитрий Селезнёв
over 2 years ago