Switch case addition in Javascript
<p>I want to use this switch case, but it doesn't work:</p>

<pre><code>switch(parseInt(num1),parseInt(num2),op)
    {
    case '+': resultat=(num1+num2);break;
    case '-': resultat=(num1-num2);break;
    case '*': resultat=(num1*num2);break;
    case '/': resultat=(num1/num2);break;
    case '&lt;': resultat=(num1&lt;num2);break;
    case '&gt;': resultat=(num1&gt;num2);break;
    case '%': resultat=(num1%num2);break;
    default:alert("Erreur: opérateur inconnu");
    }
</code></pre>

<p>num1 and num2 are collected before with a prompt command, they are numbers. They are converted from a chain to a number with the parseInt().
op is an operator like : *, /, +, -, % or >, &lt;. It's  collected befor with a prompt command as well.
I just want to do an addition, like 3+5=8.
Everything works exept for the addition...it return the answer 35. I don't understand why it don't see the addition even if I put it between ()...as you can see: case '+': resultat=(num1+num2);break;</p>

<p>Can someone can help me with that please?</p>