Completed exercise 02
This commit is contained in:
parent
915926a65a
commit
9e9a4b1ff2
|
@ -8,9 +8,9 @@
|
||||||
number = Number(prompt("enter a number"));
|
number = Number(prompt("enter a number"));
|
||||||
|
|
||||||
function numberChecker() {
|
function numberChecker() {
|
||||||
if(number === 6) {
|
if(number >= 10) {
|
||||||
return true;
|
return true;
|
||||||
} else {
|
} else if (number < 10) {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue