Color Change Lab

Easy
64
4
56.9% Acceptance

In this lab, you have to create a simple web page with a button and a paragraph. The paragraph should have an ID of myParagraph and the button should have an ID of colorButton. When the user clicks the button, the color of the text inside the paragraph should toggle between red, green, and blue. The initial text color should be black.

To solve this, you need to write event listener for the button and manipulate the style of the paragraph using JavaScript. Make sure to take care of the click events and update the color of the text sequentially.