javascript class and object
<p>Can this be done in Javascript? I am converting a java wiki page to javascript. I'm pretty sure var should be used instead of int right? </p>

<pre><code>class Sample extends Object {

 int ivar1;
 int ivar2; 

Sample(int i, int j) {
 ivar1 = i;
 ivar2 = j;

}

int emptyMethod() {}
...

for (int i = 0; i &lt; maxLoops; i++) {
...
 }
}
</code></pre>
