- 1
My two loop don't display paragraph élément with strong item. Thanks you.
Display element paragraph with strong item. https://code.sololearn.com/W2c95sNhbx85/?ref=app
1 Resposta
0
Porque insertas el elemento "strong fuera del elemento "p":
document.body.appendChild(strong);
document.body.appendChild(paragraph);
en lugar de eso:
document.body.appendChild(paragraph);
paragraph.appendChild(strong);