what does % do in javascript
<p>I'm trying to convert some JavaScript code into Java but do not know what the <code>%</code> character between two numeric variables does:</p>

<pre><code>    testvalue= somevalue%anothervalue;
</code></pre>

<p>What does this mean or what would the same statement be in Java?</p>

<p>I also have this in javascript</p>

<pre><code>    if(somevalue%2==1){
    }
</code></pre>

<p>What does <code>%2</code> mean here?</p>
