This forum is now read-only. Please use our new forums! Go to forums
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’
Popular free courses
- Free Course
Learn SQL
In this SQL course, you'll learn how to manage large datasets and analyze real data using the standard data management language.Beginner friendly,4 LessonsLanguage Fluency - Free Course
Learn JavaScript
Learn how to use JavaScript — a powerful and flexible programming language for adding website interactivity.Beginner friendly,11 LessonsLanguage Fluency - Free Course
Learn HTML
Start at the beginning by learning HTML basics — an important foundation for building and editing web pages.Beginner friendly,6 LessonsLanguage Fluency
3 comments
The Same case with me!
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?
Yeah!