"Write your name within the quotes" error


#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 = ["richie."];
var lettercolors = [red, orange ,green ,blue, purple];

drawName("richie",lettercolors);

the erro is "write your name within qoutes"


Arrays
#2

In the call fonction drawName() you should put first myName and then letterColor

deawName()

don't use directly your name in " " but use the variable myName


#3

its still now working


#4

can you post your new code?


#5

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

drawName("myName",lettercolors);


#6

first lettercolors should be letterColors with the uppercase C than you should remove the " " around the variable myName

drawName("myName",lettercolors);

then you should write your name like that

var myName = "richie";

#7

yeppppppiiiii thanks you so much av gotten it....wow i can belive it was that simple.........:grinning:


#8

In question no 6 boolean which code i want to write, im not getting

document.write( "I'm coding like a champ" );
"I'm coding like a champ".length


#9

HI next time it's better if you creat a new topic with your code instaed of posting in an old post 21 days later.

then

you should put

"I'm coding like a champ".length

inside the document.write() liek that

document.write( "I'm coding like a champ".length );

from the instruction Then, compare the string's length to see if it is greater than 10.