+ 1
It says that rgb is not defined ?
Need help, Error, line 28.. Rgb isn't defined https://code.sololearn.com/Wab4I7IskQar/?ref=app
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
+ 1
Raj Chhatrala thank you