Remove event listener lab

64.1% Acceptance

In this lab, you will practice the usage of the element.removeEventListener() function. The goal is to create an HTML file with a button and a paragraph. When the button is clicked for the first time, the paragraph's text should change to 'Button clicked once'. After the first click, the button should not respond to any other clicks. To achieve this, you will have to use the element.removeEventListener() function.\n\nHere's the outline of the tasks:\n- Create a button with id btn.\n- Create a paragraph with id paragraph and initial text 'Not clicked'.\n- Write a JavaScript function that modifies the paragraph's text and removes the click event listener from the button.\n\n## Important concepts\n- Add event listeners using element.addEventListener().\n- Remove event listeners using element.removeEventListener().\n\nPlease make sure you have a clear understanding of these concepts before starting the challenges.