I have been reading similar questions, but the most common problem is selecting a string, which is not my case.
const container = document.querySelector(".container")
const towerOne = document.querySelector("#towerOne")
const discs = document.querySelectorAll(".disc")
let chosen
discs.forEach(choices => choice.addEventListener("click", (e) => {
chosen = e.target.id
towerOne.removeChild(chosen)
container.appendChild(chosen)
}))
I've tried declaring let chosen as " " before but changing it modified anything.