Oops, try again. Make sure you have defined all the variables!


I keep getting an error message on 10.Arrays. These are the instructions.
In line 7, set myName equal to your name again. Remember to use quotes, since your name should be a string.
In line 8, create an array named letterColors that stores a list of the five colors available. For example, letterColors = [red, orange, green]. Remember to separate each variable with a comma.

Here is the code that I put in.

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 Emily = "name";
var letterColors = [red, orange, green, blue purple];

drawName(myName, letterColors);


Hi this line

var Emily = "name";

you should save you name in a variable nemed myName so it should be

var myName = "Here type yout name";

and this line

var letterColors = [red, orange, green, blue purple];

it's missing the comma between blue and purple


This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.