type check using conditional statement? JS
<p>JavaScript Problem. 
i need to apply condition if number is a NUMBER or STRING or BOOLEAN. I am able to check its type but cant apply condition. why?</p>

<pre><code>var g = 5e-2;
alert(typeof g);
if(g === number) //not working
if(g == number) //also not working
alert("yeah it worked");
</code></pre>

<p>both if are for reference NOT nested</p>
