Playing with null and zero values in javscript : Hi I have a variable which can hold value as zero or null.

Ex:-

    var temp = 0;
    
    if(temp){ // if temp is zero do some work if null go in else
    // Do some work
    } else {

    }

How i can check this without using temp === 0 as 0 is false.
Any suggestions ?