Create a button that changes element text color on click in JavaScript
We have to create a button in HTML which will change the text color of the heading on click.
We will be going to see how to do this in JavaScript step by step.
Step 1 - Create a HTML structure
In HTML, we will create one H1 tag and one Button.
<!DOC...
omgaikwad.hashnode.dev2 min read