0

Fix this error in JS

Why setvalue function not working? https://code.sololearn.com/WY5RFU7n60Zf/?ref=app

11th Apr 2020, 7:47 AM
Souptik Nath
Souptik Nath - avatar
3 Réponses
+ 4
At line 13, it should be .style.display and not .display.style. That's causing the error.
11th Apr 2020, 7:58 AM
Taranjeet
Taranjeet - avatar
+ 1
Yes, it happens. Be sure to check the error in the console, the location of the line and check the line thoroughly. It helps a lot.
11th Apr 2020, 8:03 AM
Taranjeet
Taranjeet - avatar
0
Thank you Taranjeet .It was a typing mistake.
11th Apr 2020, 8:02 AM
Souptik Nath
Souptik Nath - avatar