Tech Mahindra interview question

Create a eventlistener in javascript for click event