Javascript IF statement, detecting null not working
<p>I have a null variable that is behaving weird. For some reason I can't seem to detect whether or not it is null! The var is called <code>emailFromUrl</code>.</p>

<pre><code>   console.log(emailFromUrl); //returns null
   console.log(emailFormUrl.toString()); //returns null
   console.log(emailFromUrl === null); //false!
   console.log(emailFromUrl != null); //true!
   console.log(typeof emailFromUrl); //string
   console.log(!emailFromUrl); //false!
   console.log(emailFromUrl === ""); //false
</code></pre>

<p>What the heck is going on here?</p>

<p><strong>The answer:</strong></p>

<pre><code>   console.log(emailFromUrl === 'null'); //true!
</code></pre>

<p>The unfiltered console log:</p>

<pre><code>Test71 | emailFromUrl : null | emailFromUrl === null : false | emailFromUrl != null : true | emailFromUrl.toString() : null | typeof emailFromUrl : string | !emailFromUrl : false | emailFromUrl === "" : false | emailFromUrl === "null" : true
</code></pre>
