Tech Mahindra Interview Question

Create a eventlistener in javascript for click event