diff --git a/ejercicios-clase-8.js b/ejercicios-clase-8.js index af39c43..97f5d50 100644 --- a/ejercicios-clase-8.js +++ b/ejercicios-clase-8.js @@ -1 +1,8 @@ // 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; +} \ No newline at end of file diff --git a/index.html b/index.html index 0c393ac..dcd25dc 100644 --- a/index.html +++ b/index.html @@ -32,4 +32,5 @@
Este es otro párrafo del montón.