Arrays. I can't get can't get past this point


#1

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 = ["Roman"]
letterColors = [red,orange,green,blue,purple].

drawName(myName, letterColors);

It says, "Oops. Try your name within quotes"
I have done it with and without the brackets.
Can anyone help.?


Replace this line with your code.


#2

never mind.I fixed it by taking the period off the color array and then copying and pasting it back into the screen, as was suggested in a previous post.


#3

@saltherr You shouldn't have the dot (.) at the end of that line, that's why you're not getting passed with it there. Try using a semi-colon (;) instead, like the lesson is expecting (it's also valid JavaScript, unlike using a dot there).


#4

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