From 9e9a4b1ff2028eaedb941787a43a36b97e5b4de4 Mon Sep 17 00:00:00 2001 From: NetMan <13informatyka14@gmail.com> Date: Sat, 30 Dec 2023 15:15:45 +0100 Subject: [PATCH] Completed exercise 02 --- 02-enter-a-number/script.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/02-enter-a-number/script.js b/02-enter-a-number/script.js index 4afaa72..f1e6a4e 100644 --- a/02-enter-a-number/script.js +++ b/02-enter-a-number/script.js @@ -8,9 +8,9 @@ number = Number(prompt("enter a number")); function numberChecker() { - if(number === 6) { + if(number >= 10) { return true; - } else { + } else if (number < 10) { return false; } }