Writing to a cell for the tic-tac-toe game in JavaScript

Let's first make it so that when you click on any cell in the table, an X mark simply appears in this cell.

For this we will make the start function, which receives an array of table cells as a parameter:

function start(cells) { }

We will use this function as follows:

let cells = document.querySelectorAll('#field td'); start(cells);

Implement the described task.

enru