JavaScript Counter
- Need to make a counter using setInterval.
- So first create a p tag inside P tag put 0 value.
- After that create three buttons.
- Start
- If I click start then every second p tag value
should be increase.
- Stop
- If I click stop then counter will stop on
current value
- Reset
- If I reset then counter value should be 0 and
counter is stop