i also have one question about compareGuesses() function , in js file there is no variable called human , but yet we used it in the filed and it is not defined in the file

I CANT understand getAbsoluteDistance() function , and got confused about last task number6 in this project ,i read the forms and copied the code HERE >. const alert = (humanScore) => {
if (humanScore < 0 && humanScore > 9) {
return “number is out of range”;
}; and when i try to put 10 as a guess , it didnt show “number is out of range” to me

Consider whether this is possible. Could any number be both less than zero and greater than 9? Perhaps && is not well suited for this condition.

1 Like