This forum is now read-only. Please use our new forums at discuss.codecademy.com.

Animate Your Name Forum

View Course » View Exercise

1571 points
53ac68a7282ae399640009d8_770246111
Submitted by
saahil Nawalkha
about 3 years ago

Why do we put numbers in the color variables????

eg- var red = [0, 100, 63];
var orange = [40, 100, 60];
var green = [75, 100, 40];
var blue = [196, 77, 55]

why do we need numbers in array


0 votes

permalink

Hi Saahil, those numbers are a way for us to tell JavaScript what colour we would like it to show. There is a more complete explanation of how that works over here.

3691 points
55df2afa95e3787b9200005e_359368177
Submitted by
Judy
about 3 years ago