Stuck at 10


#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 = "asdf2345";
drawName(myName, letterColors=[red, orange, green, blue, purple] );

I keep getting this error
Make sure to use the variables myName and letterColors in the drawName() function, like this: drawName(myName, letterColors).
Even though i have them combined.


#2

You will need to define your letterColors variable before you try to use it in that function call. You can't define it and use it in the call all in the same breath.


#3

Hello @asdf2345,

Try defining the array letterColors outside of the function call, and then just pass in the array name to the drawName() function


#4

that worked perfectly


#5

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