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!" +})