LITERA;LLLY WHATS WRONG WITH MY CODE.

i never explained but im trying to make it so if you click div1, div2 gets a class added to it. SOLVEDD!!!!!!! excuse the explicit name....

$(function(){ $('#wonderland').onclick = function(){ $('#memo').addClass('pussy'); }; });

i got this

hopefully document.getElementById("wonderland").addEventListener("click", function() { this.classList.add("pussy"); }); works!!!

YAYYAYAYAYYAYYYY I DID IT I DID IT

const aa = document.getElementById("banned"); const memo = document.getElementById("memo"); aa.addEventListener("click", () => { memo.classList.add("pussy"); }); WAS THE ANSWER