2023-12-30 14:11:09 +00:00
|
|
|
/**
|
|
|
|
* The code below tells the browser to ask you for a number
|
|
|
|
* then if that number is `6`, it returns `true` otherwise it returns `false`
|
|
|
|
*
|
|
|
|
* Change this code so it returns `true` when the number is greater than or equal to 10, and false if it is less than 10
|
|
|
|
*/
|
|
|
|
|
|
|
|
number = Number(prompt("enter a number"));
|
|
|
|
|
|
|
|
function numberChecker() {
|
2023-12-30 14:15:45 +00:00
|
|
|
if(number >= 10) {
|
2023-12-30 14:11:09 +00:00
|
|
|
return true;
|
2023-12-30 14:15:45 +00:00
|
|
|
} else if (number < 10) {
|
2023-12-30 14:11:09 +00:00
|
|
|
return false;
|
|
|
|
}
|
|
|
|
}
|