feat: add changeTittle function for DOM manipulation

This commit is contained in:
2026-05-14 13:26:11 -03:00
parent 167bbaaf54
commit ad14f63517
2 changed files with 8 additions and 0 deletions

View File

@@ -1 +1,8 @@
// Vincular este archivo al archivo index.html, y resolver aquí los ejercicios. // Vincular este archivo al archivo index.html, y resolver aquí los ejercicios.
// Ejercicio 1
const changeTittle = (a) => {
const tittle = document.querySelector('h1');
tittle.textContent = a;
}

View File

@@ -32,4 +32,5 @@
<p>Este es otro párrafo del montón.</p> <p>Este es otro párrafo del montón.</p>
</div> </div>
</body> </body>
<script src="ejercicios-clase-8.js" ></script>
</html> </html>