linked my spots on the game-board to a const using document.getElementById however the first 3 spots aren't linked and not sure why.
Post any code you think might be relevant (one fenced block per file)
const cellId = `sp${sptIdx}`
console.log(cellId) //then use render function to make specific changes on the DOM
const CellEl = document.getElementById(cellId)
console.log('CellEL', CellEl)
})
}
If you see an error message, post it here. If you don't, what unexpected behavior are you seeing?
it is only selecting the last 9 of my id's as opposed to all 13.
What is your best guess as to the source of the problem?
maybe change it from referencing Id to referencing class but that would not work because I want to separate certain ones later on
because the spots will trigger different events.
What things have you already tried to solve the problem?
Checked for spelling errors on the HTML and googled around for suggestions. I'm assuming the issue is somewhere else but I;m not sure where
I didn't realize I had an extra '0' in the gameBoardArray I was referencing. Since there were 13 digits in the array and I was trying to sort through 12 it was messing everything up. We're good !
What's the problem you're trying to solve?
linked my spots on the game-board to a const using document.getElementById however the first 3 spots aren't linked and not sure why.
Post any code you think might be relevant (one fenced block per file)
If you see an error message, post it here. If you don't, what unexpected behavior are you seeing?
it is only selecting the last 9 of my id's as opposed to all 13.
What is your best guess as to the source of the problem?
maybe change it from referencing Id to referencing class but that would not work because I want to separate certain ones later on because the spots will trigger different events.
What things have you already tried to solve the problem?
Checked for spelling errors on the HTML and googled around for suggestions. I'm assuming the issue is somewhere else but I;m not sure where
Paste a link to your repository here