0

Why does the console keep on showing error on line 7 when there isn't even any code in it. BTW, this piece is like my rough work

https://code.sololearn.com/WycjtsVmhTVX/?ref=app

7th Aug 2020, 9:20 PM
Iloka Nadia
Iloka Nadia - avatar
4 Answers
+ 1
Hmm... That's weird. I don't know why it is showing error on line 7, but the problem is a missing curly brace on line 74.
7th Aug 2020, 10:35 PM
XXX
XXX - avatar
0
Oh my ... I guess the console was unable to write the complete 2 digit number. I'm very grateful, thank you soo much, that fixed the problem. Thanks again
7th Aug 2020, 10:40 PM
Iloka Nadia
Iloka Nadia - avatar
0
I don't think so. I tried putting empty lines and take the line number to 80+, it still showed 7. Will run it in a PC tomorrow and see.
7th Aug 2020, 10:42 PM
XXX
XXX - avatar
0
I added the curly brackets in line 74 and it worked.
7th Aug 2020, 10:50 PM
Iloka Nadia
Iloka Nadia - avatar