+ 1

It says that rgb is not defined ?

Need help, Error, line 28.. Rgb isn't defined https://code.sololearn.com/Wab4I7IskQar/?ref=app

12th Dec 2020, 4:27 AM
Zovelosoa Jph
Zovelosoa Jph - avatar
2 Answers
+ 1
You get error because rgb is not a function in JavaScript. It is used in css only. If you want to compare anything then you have to compare it as a string (with exact values) https://code.sololearn.com/WVT4lzG2WRtZ/?ref=app
12th Dec 2020, 4:45 AM
Raj Chhatrala
Raj Chhatrala - avatar
+ 1
Raj Chhatrala thank you
19th Dec 2020, 3:49 PM
Zovelosoa Jph
Zovelosoa Jph - avatar