when we define an array as constant in javascript does it mean that array cannot shrink or enlarge and have a constant size, or, does it mean that all the elements in an array are constant and you cannot change their value.
handleClick(i) {
const squares = this.state.squares.slice();
squares[i] = 'X';
this.setState({squares: squares});
}
in the above code.