Javascript; check if a variable is 1 or 0
<p>I'm using a variable in Javascript which will be set via Php e.g. <code>var usesInterview = &lt;?php echo 1;?&gt;</code></p>

<p>If not, then <code>var usesInterview = &lt;?php echo 0;?&gt;</code></p>

<p>How best should I handle this in my code? There will be a If statement to check for the variable and determine the route to take.</p>

<p>I've tried using <code>typeof() == 1</code> and when I set it to 0, it still carries out the routine as if it where 1.</p>
