This forum is now read-only. Please use our new forums! Go to forums
10/15 [resolved] Animate your name
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 = “Katie”; var lettercolors = [ red,orange,green,blue,purple ];
drawName = (myName,letterColors);
I have tried changing things everywhere, but I am not sure where I am off? Is there something I am missing or did too much off?
I get the errors “ Oops, try again. Make sure you have defined all the variables!” and ‘Uncaught ReferenceError: letterColors is not defined”
Answer 55a5c362d3292fa6d50001f7
Katie,
I got stuck here too. Try using a capital C in letterColors and then putting a space after each comma that you have after the colors [red, orange, green, blue, purple];
Jackie
Answer 55a6978d76b8fe778f00064a
Just remember that Java is very sensitive, so if you created a variable called lettercolors, you can’t then expect the program to recognize it as letterColors. It can works with all lower case or the latter, but it is usually expressed as a capital letter every time a new word in the variable starts :) Good luck!
Answer 55a7321776b8fe198d0003b5
Thank you for your help! I got it and shouted EUREKA! :)
Katie
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
1 comments
Glad you did it! :)