Hey Nikita, your code doesnβt have any error, but the fact is that when you click the button your javascript is working correctly, and also adds divs to the list, but similarly your page receives this message because of two main
1) your button is not having id 2) your page containing form tag.
I suggest you if the form tag is not needed, delete it or add an identifier to the button
source share