= =` += i++=ihhrNhJS array keeps previous values even after clearing.
I'm trying to create new divs at the click of a button that displays different links a user has entered. For some reason, each new div also shows the links previously entered even after I cleared the array.