forked from marquez.juan/clase-8-DOM
Ejercicio 1
This commit is contained in:
@@ -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";
|
||||
|
||||
Reference in New Issue
Block a user