I’ve a little question i’d like to test if my clearInterval(playfunction) is true of false and I tought it would work like this
if(clearInterval(play)==true){
//do this 1
}
else{
//do this 2
}
But it dosnt work like this…what did I do wrong?
Kind Regards,
and thanks for help!
clearIntervaldoesn’t return anything. It will always beundefinedand nevertrueorfalse.