Why does a JavaScript function fail with certain parameter names?
<p>The following JavaScript function is supposed to make a simple JQuery call to load a page and set a class:</p>

<pre><code>function Lp(page,class) {
    $("#result").load(page);
    $('#nav').attr('class',class);
}
</code></pre>

<p>However it failed to work until, on a hunch, I changed the name of the second parameter:</p>

<pre><code>function Lp(page,hilite) {
    $("#result").load(page);
    $('#nav').attr('class',hilite);
}
</code></pre>

<p>Surely the parameter names are arbitrary, or am I missing something?</p>
