Can anyone help me with this simple code?
<pre><code>function isVowel(char){

    if(typeof char == 'string' &amp;&amp; char.length &gt; 1){
        console.log('not a char');
        return 'not a char';
    } else {
        if (char.toLowerCase() === ('a'||'e'||'i'||'o'||'u')){
            console.log(char, true);
            return true;
        } else {
            console.log(char, false);
            return false;
        }
    }
}

document.writeln(isVowel('a'));
document.writeln(isVowel('e'));
document.writeln(isVowel('l'));
</code></pre>

<p>the result is: true, false, false;</p>

<p>it should be: true, true, false;</p>

<p>Can anyone help me why this is happening?</p>

<p>I'm just barely learning JavaScript...</p>

<p><strong>Also, is there any way to refactor this code? I don't want to be repeating myself for every new condition..</strong></p>
