Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions 01-le-dom/02.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
/* Il existe maintenant 2 méthodes permettant d'accéder
aux éléments de manière plus simple. */

/* La méthode querySelector renvoie le premier élément correspondant dans le document */
var bodyElement = document.querySelector('body');
console.log(bodyElement);

Expand Down