Strange Error? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

Strange Error?

What's with the error on line 8(CSS)? What does it mean? https://code.sololearn.com/W71keXUbAKcL/#css

6th Aug 2018, 11:17 PM
Daniel Cooper
Daniel Cooper - avatar
11 Answers
+ 1
Hey Daniel, what's the error. I just tried your code with '2', '5' and 'abc' as inputs and no error. I'm on Android.
6th Aug 2018, 11:24 PM
Duncan
Duncan - avatar
+ 1
As luck would have it, it won't let me view the image 'Access Denied'.
6th Aug 2018, 11:50 PM
Duncan
Duncan - avatar
+ 1
Very strange, I'll see if I can replicate from the web later today.
7th Aug 2018, 2:22 AM
Duncan
Duncan - avatar
+ 1
red is reserved word for color, try to use other name eg. red1
7th Aug 2018, 4:31 AM
Calviղ
Calviղ - avatar
0
The error is a CSS error. It reads: expected (none || <ident>) but found "red" It's on line 8 in CSS. No idea what it means.
6th Aug 2018, 11:26 PM
Daniel Cooper
Daniel Cooper - avatar
0
You guys can't see the errors on Android. I can try and screenshot it I guess.
6th Aug 2018, 11:30 PM
Daniel Cooper
Daniel Cooper - avatar
6th Aug 2018, 11:42 PM
Daniel Cooper
Daniel Cooper - avatar
0
Duncan I posted the image on my profile.
7th Aug 2018, 12:09 AM
Daniel Cooper
Daniel Cooper - avatar
0
I'm not on my laptop atm. Would that fix the error?
7th Aug 2018, 4:40 AM
Daniel Cooper
Daniel Cooper - avatar
0
I'm not on my laptop too.. My new MB still in Apple store there.
8th Aug 2018, 5:11 AM
Calviղ
Calviղ - avatar
0
Lol. It fixed it. Thanks my dude.
8th Aug 2018, 5:12 AM
Daniel Cooper
Daniel Cooper - avatar