0
Why newP.appendChild is not a function
3 Réponses
+ 2
Line 7:
Use 'id' rather than 'class' attribute
<section id="one">
Line 13:
Remove =
const newP = document.createElement('p');
Line 18:
Add <newP> not <p>
section.appendChild(newP);
+ 1
Mistakes
1. document.createElement = ('p');
Equals to sign is not needed
2. it should be section.append(newP)
+ 1
Thanks all it's already work now