Check if integer ends with 0
<p>How may I create an if-statement in order to check if an integer ends with 0?</p>

<p>For example, I'd like to have an if-statement like this:</p>

<pre><code>var test = 107; //107 is an example it'should some unknown number

if(test is xx1 - xx9){
  //do something
}
else if(test is xx0){
  //do something
}
</code></pre>