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