feat: implement counter functionality with increment and decrement buttons

This commit is contained in:
2026-05-25 12:22:17 -03:00
parent 28718fea20
commit 4a7c4871f6
2 changed files with 35 additions and 1 deletions

View File

@@ -8,7 +8,9 @@
</head>
<body>
<h1>Ejercicio 4</h1>
<p> Contador: <span id="counter">0</span></p>
<button id="increment">Incrementar</button>
<button id="decrement">Decrementar</button>
<script src="ejercicio4.js"></script>
</body>
</html>