0

Dark mode prob

Why is the button not turning my document.body to black? https://code.sololearn.com/WqEEPWw125pd/?ref=app

2nd Apr 2022, 1:25 AM
Junior
Junior - avatar
2 Respostas
+ 4
Use function call for 'onclick' attribute value e.g. "darkboi();" If you supplied only "darkboi" the function is not getting invoked.
2nd Apr 2022, 1:30 AM
Ipang
+ 2
Yes, sorry tiny mistake i missed
2nd Apr 2022, 1:31 AM
Junior
Junior - avatar