Add check grid size smaller than 100

This commit is contained in:
Thuan Bui
2025-02-24 10:09:17 +09:00
parent 69e8f2965c
commit 756a3ebbf7
+2 -2
View File
@@ -3,7 +3,7 @@ const containerWidth = document.querySelector(".container").clientWidth;
console.log(containerWidth)
const button = document.querySelector("button")
let size = 0
let size = 16
button.addEventListener('click', () => {
do {
let gridSize = prompt("Please enter grid size: ")
@@ -36,7 +36,7 @@ function makeGrid(size) {
}
}
makeGrid(16)
makeGrid(size)
function getRandomColor() {
var letters = '0123456789ABCDEF';