Why it is not prints something.what did i do wrong?More on Control Flow in JS-2


#1

this is my code

www.codecademy.com/courses/javascript-beginner-en-qDwp0/0/2?curriculum_id=506324b3a7dffd00020bf661#


var isEven = function(number) {
if (number % 2===0){
return true;}
else if(isNaN (number))
{return "kati allo "}
else {return false} };


#2

Hi you should call the function isEven() with a number ...


#3

Can you please explain this to me


#4

what do you want to know?


#5

what do i have to do to print the string


#6

the function isEven should take a number or a string so if you want to print the string

this one?

return "kati allo "

you should call the function isEven() with a string like that

isEven("hello")

you could put any string you want


#7

thank you for the help