+ 2

Help me Fix the Bug

My To Do List refuses to work, its supposed to create a new 'p' tag with the value inputed by the user once the '+' button is pressed. It throws an error in Sololearn Editor but works fine when displayed on browsers and on my VS code editor(laptop). What could be the problem? https://code.sololearn.com/WQwJLuX6dnpE/?ref=app

30th Sep 2020, 5:46 PM
Okereke
Okereke - avatar
2 Respuestas
+ 2
window.onload = function(){ //put your all JS code here. }
30th Sep 2020, 5:52 PM
Vadivelan
+ 2
Correct Vadivelan
30th Sep 2020, 5:57 PM
Steve Sajeev
Steve Sajeev - avatar