Question: //javascript Create a paragraph with click event listener. On clicking the paragraph toggle the color between red and green depending on how many times it
Create a paragraph with click event listener. On clicking the paragraph toggle the color between red and green depending on how many times it has been clicked. If number of clicks on the paragraph are multiple of 3 then make it red otherwise make it green.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
