From 1a9c4e284fa8ceeaa16da57eeca6c632ceb016e9 Mon Sep 17 00:00:00 2001 From: Tyler Hueter Date: Tue, 23 Apr 2019 08:57:42 -0400 Subject: [PATCH] Done. --- index.js | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/index.js b/index.js index 4b2f148..06c6b53 100644 --- a/index.js +++ b/index.js @@ -1 +1,10 @@ -// Your code goes here \ No newline at end of file +document.addEventListener("DOMContentLoaded", function() { + console.log("The DOM has loaded"); +}); + +console.log("This console.log() fires when index.js loads - before DOMContentLoaded is triggered"); + +document.addEventListener("DOMContentLoaded", function() { + let test = document.getElementById('text'); + test.textContent = "This is really cool!" +})