We will develop a counter that will add and subtract one.
To do this, you need to add a paragraph on the page, initially it should contain the number 0
.
Digit size is 2rem
.
There are two buttons under the paragraph - the left one displays the -
character, the right one displays the +
character.
The size of the characters is 2rem
.
When you press the left button, the number in the paragraph should decrease by one.
When you click on the right - to increase.
Use internal styles and scripts.
This task is part of the Full-Stack JavaScript Course
If you have any issues with it, you can ask for community help below the post
Feel free to help others if you’ve already solved the task
index.html
<!DOCTYPE html>
<html>
<head>
<title>Counter</title>
</head>
<body>
</body>
</html>