Javascript for Pentester Task 6

Hello internet people today I am going to post another solution to the task provided at Javascript for Pentester at Pentester Academy. This task is different in which we will learn how to play with event listeners in Javascript. You can view solutions to the other tasks here.