Assessment wanted for Events tasks

Hello! Need assessment for Events skill tests.

Codepen:
Task 1.
Task 2.
Task 3.

Hello @VladimirK

you doing great as usual and have a nice day :slight_smile:

1 Like

Hi Vladimirk, I am struggling the events task 1 as well, what I confused is the requirement of the question, my initial understanding is to toggle between 2 style, add the function:
function changeView() {
var element = document.getElementsByClassName(“preview”);
element.classList.toggle(“mystyle”);
}
btn.addEventListener(“click”,changeView);

Hi, @Frankie_BNE! Upload your example on codepen or something like this, write on this topic later or create the new one.

1 Like