From 777573e71d023613b833ea2be593fd9c124c7e64 Mon Sep 17 00:00:00 2001 From: Benjamin Claassen Date: Thu, 16 Jan 2025 22:45:47 +0100 Subject: [PATCH] Fixed type parameter Fixed magic number not using global --- reviews/BordedDev/sudoku.rewrite.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/reviews/BordedDev/sudoku.rewrite.js b/reviews/BordedDev/sudoku.rewrite.js index f6371c4..7f0842d 100644 --- a/reviews/BordedDev/sudoku.rewrite.js +++ b/reviews/BordedDev/sudoku.rewrite.js @@ -30,7 +30,7 @@ class SudokuPuzzle extends EventTarget { * * @type {(number|null|undefined)[]} */ - #activeState = new Array(9 * 9) + #activeState = new Array(SUDOKU_GRID_SIZE) /** * @@ -61,7 +61,7 @@ class SudokuPuzzle extends EventTarget { /** * * @param serializedState {string} - * @returns {(?string)[]} + * @returns {((number|null|undefined))[]} */ static #stateFromString(serializedState) { let cellIndex = 0