Why not able to use an int in javascript?
<p>The following code throws a javascript syntax error : </p>

<blockquote>
  <p>Uncaught SyntaxError: Unexpected identifier</p>
</blockquote>

<pre><code>var num1 = 1;
int num2 = 2;
int total1 = num1 + num2;
console.log('total1 is '+total1);
</code></pre>

<p>Why is this error thrown ?
Can I not use ints in javascript ?</p>
