Please help, I just started to learn JS a month ago. Why the append is not showing in other same id?
const getName = prompt("May I know your name?");
document.getElementById("guest").append(getName);
<p>Hello, <span id="guest"></span>!</p>
<p>Your name is, <span id="guest"></span>.</p>
Thanks in advance!