title: JavaScript if statement didn't work
body: <p>I have a function as below </p>
  
  <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
  <div class="snippet-code">
  <pre class="snippet-code-js lang-js prettyprint-override"><code>function test (x){
    if(x==='a' || x!=='b' ||'c')
    {
      console.log('result');
      console.log(x);
    }
    else {
      console.log('wrong') 
    } 
  }
  
  test('123');</code></pre>
  </div>
  </div>
  </p>
  
  <p>And I expect the output will log "wrong", but it log //result 123 as the picture below. I'm not sure is because the if condition can't work like this?</p>
  
  <p><a href="https://i.stack.imgur.com/uhVPt.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/uhVPt.png" alt="enter image description here"></a></p>