This forum is now read-only. Please use our new forums! Go to forums

0 points
Submitted by Kazza436
almost 9 years

10/15 [resolved] What's wrong with this?

Whenever I do this code, I get an error

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 = “Connor Kazza”; letterColours = [red, orange, green, blue, purple];

myName (myName, letterColors);

What’s wrong with it?

Error is

‘letterColors’ is undefined

Edit: Doesn’t matter, I worked it out, I was spelling color in the way we spell it in Australia, with a ‘u’

Answer 558ba6dd9376768f4b000044

0 votes

Permalink

surE

points
Submitted by Qcophie
almost 9 years

3 comments

Jannatun Nazifa over 8 years

The Same case with me!

Judy over 8 years

Hi Jannatun, Kazza436’s problem is that they weren’t using letterColors in both places that this variable is used - is that your case too?

Jannatun Nazifa over 8 years

Yeah!