Show a message when two or more numbers on the same row, column, or diagonal match
Use JavaScript to check for diagonal matches.
- Update your JavaScript to check for matches along diagonals, too.
- Update the message to show where the match was. Make sure you’re still checking for matches on rows and columns too!