Uncaught SyntaxError: missing ) after argument list


#1

Hi, I need help fixing this syntax error. Can someone please show me where I went 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 Names = ["Intellicode", "Christa", "Anya", "Bel"];
lettercolors = [red, blue, green, purple, orange];

drawName (lettercolors = ( red, blue, green, purple, orange );


#2

Hi this line

var Names = ["Intellicode", "Christa", "Anya", "Bel"];

First the variable should be named myName instead of Names then its should be only be one name like that

var myName = "Intellicode";

and this line

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

it's missing the var and the variable should be letterColors instaed of lettercolors then here

drawName (lettercolors = ( red, blue, green, purple, orange );

you should put inside drawName() ( inside the () ) first **myName**** the after the **, you should put letterColors


#3

THANK YOU FOR HELPING THANK YOU!!! IT WAS SO HELPFUL THANKS FOR THE ADVICE MAN I did not understand the names at first but you helped me now i do


#4

But can you put more than one name


#5

YOu can try to put it like that

var myName = "Intellicode Christa Anya Bel";

#6

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