How to check the value given is a positive or negative integer?
<p>Lets say i have the value 10 assigned to a variable;</p>

<pre><code>var values = 10;
</code></pre>

<p>and i want to run a specific function if the value is a positive</p>

<pre><code>if(values = +integer){ 
    //do something with positive 
} else { 
    //do something with negative values 
}
</code></pre>

<p>How would this be achieved?</p>
