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