- 2

I want to run this code. I have error line 18. Thanks you sir.

I have error line 18. https://code.sololearn.com/WeyjzrF812nw/?ref=app

31st Aug 2021, 6:37 AM
Malick Diagne
Malick Diagne - avatar
4 Answers
+ 2
Try to compare this with your code. I marked out where you had errors https://code.sololearn.com/WYGNTL7P4SDZ/?ref=app
31st Aug 2021, 6:53 AM
Baribor Saturday
Baribor Saturday - avatar
+ 2
MIstakes : 1. give script as type="text/babel" 2. line 21 : it should be onClick not onclick (C capital ) 3. line 16 : Unexpected close curly bracket ' } ' NO error on line 18
31st Aug 2021, 6:58 AM
Pariket Thakur
Pariket Thakur - avatar
0
You're more likely to get help if you use relevant tags: https://code.sololearn.com/W3uiji9X28C1/?ref=app
31st Aug 2021, 6:41 AM
Simon Sauter
Simon Sauter - avatar
0
Line 14 and 24 delete { At 28 add } Now you have another error but is not for the brackets.
31st Aug 2021, 6:48 AM
Elia
Elia - avatar