10. Arrays - keep getting error message


#1

It keeps popping up and saying "make sure you have defined all the variables" but I can't see what I've done wrong.

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

drawName(myName, lettersColors);


#2

It would be easier to troubleshoot if the error message gave us the variable name that it is having trouble with. :slight_smile:

It can't find letterColors.


#3

same message for me :c


#4

Look closely at the difference between this and the opening post.


#6

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

drawName(myname, purple, orange, red, blue, green);
can i know what is the variables here?


#7

This is the defined variable name. Check your call argument. It doesn't match.


#8