diff --git a/scripts.js b/scripts.js
index ba09e74..7b67349 100644
--- a/scripts.js
+++ b/scripts.js
@@ -44,7 +44,7 @@ const addMarker = (id) => {
console.log(`Therefore, a "${currentMarker}" should be placed in the square with the id: ${id}`)
// @TODO-2: Build a line of code that will set the innerHTML property of the element that was clicked to the "currentMarker"
-
+ document.getElementById(id).innerHTML = currentMarker
// @TODO-2.5: MIX & MATCH, You will need the following pieces of code to build that line:
// = currentMarker
// .getElementById(id)
@@ -70,6 +70,7 @@ const changeMarker = () => {
} else {
currentMarker = "X"
}
+ console.log('BEFORE currentMarker:' ,currentMarker)
}
@@ -86,7 +87,7 @@ const resetBoard = () => {
// @TODO-3: To make your "Restart" button work you'll need to build a line of code here that:
// collects all of the "td" elements into an HTML Collection: https://www.w3schools.com/jsref/dom_obj_htmlcollection.asp
-
+ const squares = document.getElementsByTagName("TD")
// @TODO-3.5: MIX & MATCH, You will need the following pieces of code to build that line:
// squares
// .getElementsByTagName("TD")