first comit

This commit is contained in:
Johan
2025-12-15 15:16:03 +01:00
parent 9db552c24f
commit 0daf9c7163
8 changed files with 38 additions and 7 deletions

View File

@@ -2,4 +2,7 @@
Énoncé :
sélectionnez l'élément `<h1>` qui a l'ID `titre-principal` et stockez-le dans une variable `titre`.
affichez cette variable dans la console.
*/
*/
const titre = document.getElementById("titre-principal");
console.log(titre);
console.log(titre.textContent)