Ejercicio 1

This commit is contained in:
Alexis08041992
2026-05-28 22:28:40 -03:00
parent 167bbaaf54
commit 0e97e56c3d
2 changed files with 7 additions and 1 deletions

View File

@@ -1 +1,6 @@
// Vincular este archivo al archivo index.html, y resolver aquí los ejercicios. console.log("JS vinculada bro");
const titulo = document.querySelector("h1");
console.log(titulo.textContent); // lee el texto actual
titulo.textContent = "La mejor comida del mundo";

View File

@@ -31,5 +31,6 @@
<p>¿Y este párrafo? ¿Será importante?</p> <p>¿Y este párrafo? ¿Será importante?</p>
<p>Este es otro párrafo del montón.</p> <p>Este es otro párrafo del montón.</p>
</div> </div>
<script src="ejercicios-clase-8.js"></script>
</body> </body>
</html> </html>