Facing error when implementing Arrays with colours


#1

Arrays

https://www.codecademy.com/courses/animate-your-name/0/2/4?utm_source=customerio&utm_campaign=free_welcome_us_treatment_email_5&utm_medium=email_welcome&utm_content=inline_link_animate


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



drawName(myName, letterColors);


#2

Following your link results in a 404 response, preventing others from reproducing what you describe.

What's the error message and how can others reproduce it?
Also, what are your thoughts about the error message, what prevents you from acting on it/what information are you missing?


#3

Here's my code:

var myName = "yeah";

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 letterColors = [red, orange, green, blue, purple];

drawName(myName, letterColors);

if(10 < 3)
{
bubbleShape = 'square';
}
else
{
bubbleShape = 'circle';
}

bounceBubbles();

See if this works. Remeber, you can put anything as the var myName inside the quotes.


#4

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.