I have an array with 9 elements wich are HTML elements as you can see in the picture below.
I'am trying to create a function wich checks if there is any text inside each of those 9 elements
I have tried to run Array.ForEach method to check if there is an "X" inside the text , but I can't do it , maybe because Iam not sure how to acess the innerText of the propertie :
Board.SquaresArray.ForEach(function(){
if (Board.SquaresArray.InnerText =="X") return console.log("This square has an X")};
forEach. same with "InnerText"if (theArray.some(e => e.innerText)) {