This forum is now read-only. Please use our new forums! Go to forums
1/15 Troubles From of the Begining
I got the folowing warning/Error:
“Uncaught ReferenceError: drawName is not defined”
“¡Uy! Probá otra vez. Make sure you have defined all the variables!”
and I cant see the preview.
there is my code:
1 var myName = “Athlas”; 2 3 4 5 drawName(myName, letterColors);
Answer 55a69850d3292f4dbb000675
0 votes
Ok, I’m not sure why it would say that drawName isn’t defined… But try defining letterColors. If you can’t see the preview, it’s ok, you can make up your own colors. For example, yellow it’s made up by using [60, 100, 60]. So you could do this:
var myName = “Athlas”; var yellow = [60, 100, 60]; drawName(myName, yellow)
p.s: You can name yellow as letterColors if you want, I’m just giving an example :) Hope it works!
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