I'm working on a small Tic Tac Toe project on my own to improve my code. But the checkForWin, horizontalWin(), verticalWin(), and diagonalWin() don't seem to work. Am I missing something?

‘use strict’;

// creates an empty “board” for the user to see where marks can be placed.
// using let because the variable is expected to change with more 'X’s and ‘O’s to add
let board = [
[’ ', ’ ', ’ ‘],
[’ ', ’ ', ’ ‘],
[’ ', ’ ', ’ ']
];

// assigns the first mark as ‘X’
// using let because the variable is expected to change from ‘X’ to ‘O’ and back
let playerTurn = ‘X’;

//function that prints the current status of the board using the variable - board
const printBoard = () => {
console.log(’ 0 1 2’);
console.log(‘0 ’ + board[0].join(’ | ‘));
console.log(’ ---------’);
console.log(‘1 ’ + board[1].join(’ | ‘));
console.log(’ ---------’);
console.log(‘2 ’ + board[2].join(’ | '));
}
//Code for horizontal
const horizontalWin = () => {
if(board[0][0] === ‘X’ && board[0][1] === ‘X’ && board[0][2] === ‘X’){
return “X wins!”
} else if(board[1][0] === ‘X’ && board[1][1] === ‘X’ && board[1][2] === ‘X’){
return “X wins!”
} else if(board[2][0] === ‘X’ && board[2][1] === ‘X’ && board[2][2] === ‘X’){
return ‘X wins!’
} else if(board[0][0] === ‘O’ && board[0][1] === ‘O’ && board[0][2] === ‘O’){
return “O wins!”
} else if(board[1][0] === ‘O’ && board[1][1] === ‘O’ && board[1][2] === ‘O’){
return “O wins!”
} else if(board[2][0] === ‘O’ && board[2][1] === ‘O’ && board[2][2] === ‘O’){
return ‘O wins!’
}
}

// this is the code for vertical wins
const verticalWin = () => {
if(board[0][0] === ‘X’ && board[1][0] === ‘X’ && board[2][0] === ‘X’){
return “X wins!”
} else if(board[0][1] === ‘X’ && board[1][1] === ‘X’ && board[2][1] === ‘X’){
return “X wins!”
} else if(board[0][2] === ‘X’ && board[1][2] === ‘X’ && board[2][2] === ‘X’){
return ‘X wins!’
} else if(board[0][0] === ‘O’ && board[1][0] === ‘O’ && board[2][0] === ‘O’){
return “O wins!”
} else if(board[0][1] === ‘O’ && board[1][1] === ‘O’ && board[2][1] === ‘O’){
return “O wins!”
} else if(board[0][2] === ‘O’ && board[1][2] === ‘O’ && board[2][2] === ‘O’){
return ‘O wins!’
}
}

// this is the code for diagonal wins
const diagonalWin = () => {
// Your code here to check for diagonal wins
if(board[0][0] === ‘X’ && board[1][1] === ‘X’ && board[2][2] === ‘X’){
return “X wins!”
} else if(board[0][2] === ‘X’ && board[1][1] === ‘X’ && board[2][0] === ‘X’){
return “X wins!”
} else if(board[0][0] === ‘O’ && board[1][1] === ‘O’ && board[2][2] === ‘O’){
return ‘O wins!’
} else if(board[0][2] === ‘O’ && board[1][1] === ‘O’ && board[2][0] === ‘O’){
return “O wins!”
}
}

// code to change the playerTurn
const changePlayer = () => {
if(playerTurn === “X”){
playerTurn = “O”;
}else if(playerTurn === ‘O’){
playerTurn =‘X’
}
}

const checkForWin = () => {
// code to check for wins
if(horizontalWin() || verticalWin() || diagonalWin()){
}else{
changePlayer();
}
}

const ticTacToe = (row, column) => {
// marker on board
board[row][column] = playerTurn;`

// calling to check for win
checkForWin();
}

const getPrompt = () => {
printBoard();
console.log("It’s Player " + playerTurn + “'s turn.”);
rl.question('row: ', (row) => {
rl.question('column: ', (column) => {
ticTacToe(row, column);
getPrompt();
});
});
}