I have this funtion
function riddle (parme) { if(parme !== parme) { return true; } return false; }
when will it return true (I dont know the language)
There is only a single value in JS which is not equal to itself which is NaN. Rest in all cases, it will print false
NaN
false
To check for NaN equality, You should use isNaN
isNaN
function riddle(parme) { if (parme !== parme) { return true; } return false; } console.log(riddle(NaN));