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

0 points
Submitted by Mohamed Ayman
almost 9 years

It said that the lettercolors are not defined

What is wrong with this code ?

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 = “aymn”;

lettercolors= [red,orange,green,blue,purple];

drawName(myName, letterColors); it said that the lettercolors are not defined

Answer 55916e6776b8fecaea000235

0 votes

Permalink

Hi Mohamed,

JavaScript is case sensitive. That means that it doesn’t see these two variables as being the same:

lettercolors
letterColors
points
Submitted by Judy
over 8 years