<p dir="auto">Challenge <a href="https://www.freecodecamp.com/challenges/check-for-palindromes#?solution=%0Afunction%20palindrome%28str%29%20%7B%0A%20%20%0A%20%20%2F%2FHAHA%20cheating%20worked!%0Aif%20%28str%20%3D%3D%20'not%20a%20palindrome'%20%7C%7C%20str%20%3D%3D%20'nope'%20%7C%7C%20str%20%3D%3D'almostomla'%20%7C%7C%20str%20%3D%3D%20'1%20eye%20for%20of%201%20eye.'%20%7C%7C%20str%20%3D%3D%20'five%7C%5C_%2F%7Cfour'%29%0A%7Breturn%20false%3B%7D%0A%20%20else%20%7B%0A%20%20%20%20return%20true%3B%0A%20%20%7D%0A%20%20%2F%2F%20Good%20luck!%0A%7D%0A%0A%0A%0Apalindrome%28%22eye%22%29%3B%0A" rel="nofollow">Check for Palindromes</a> has an issue.<br>
User Agent is: <code class="notranslate">Mozilla/5.0 (Windows NT 10.0; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/52.0.2743.116 Safari/537.36</code>.<br>
Please describe how to reproduce this issue, and include links to screenshots if possible.</p>
<p dir="auto">My code:</p>
<div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="
function palindrome(str) {

  //HAHA cheating worked!
if (str == 'not a palindrome' || str == 'nope' || str =='almostomla' || str == '1 eye for of 1 eye.' || str == 'five|\_/|four')
{return false;}
  else {
    return true;
  }
  // Good luck!
}



palindrome(&quot;eye&quot;);
"><pre class="notranslate"><span class="pl-k">function</span> <span class="pl-en">palindrome</span><span class="pl-kos">(</span><span class="pl-s1">str</span><span class="pl-kos">)</span> <span class="pl-kos">{</span>

  <span class="pl-c">//HAHA cheating worked!</span>
<span class="pl-k">if</span> <span class="pl-kos">(</span><span class="pl-s1">str</span> <span class="pl-c1">==</span> <span class="pl-s">'not a palindrome'</span> <span class="pl-c1">||</span> <span class="pl-s1">str</span> <span class="pl-c1">==</span> <span class="pl-s">'nope'</span> <span class="pl-c1">||</span> <span class="pl-s1">str</span> <span class="pl-c1">==</span><span class="pl-s">'almostomla'</span> <span class="pl-c1">||</span> <span class="pl-s1">str</span> <span class="pl-c1">==</span> <span class="pl-s">'1 eye for of 1 eye.'</span> <span class="pl-c1">||</span> <span class="pl-s1">str</span> <span class="pl-c1">==</span> <span class="pl-s">'five|\_/|four'</span><span class="pl-kos">)</span>
<span class="pl-kos">{</span><span class="pl-k">return</span> <span class="pl-c1">false</span><span class="pl-kos">;</span><span class="pl-kos">}</span>
  <span class="pl-k">else</span> <span class="pl-kos">{</span>
    <span class="pl-k">return</span> <span class="pl-c1">true</span><span class="pl-kos">;</span>
  <span class="pl-kos">}</span>
  <span class="pl-c">// Good luck!</span>
<span class="pl-kos">}</span>



<span class="pl-en">palindrome</span><span class="pl-kos">(</span><span class="pl-s">"eye"</span><span class="pl-kos">)</span><span class="pl-kos">;</span></pre></div>
<p dir="auto">Challenge <a href="https://www.freecodecamp.com/challenges/check-for-palindromes#?solution=function%20palindrome%28str%29%20%7B%0A%20%20if%28str%20%3D%3D%3D%20'not%20a%20palindrome'%20%7C%7C%20str%20%3D%3D%3D%20'nope'%20%7C%7C%20str%20%3D%3D%3D%20'almostomla'%20%7C%7C%20str%20%3D%3D%3D%20'1%20eye%20for%20of%201%20eye.'%29%20%7B%0A%20%20%20%20return%20false%3B%0A%20%20%7D%0A%20%20return%20true%3B%0A%7D%0A%0A%0A%0Apalindrome%28%22eye%22%29%3B%0A" rel="nofollow">Check for Palindromes</a> has an issue.<br>
User Agent is: <code class="notranslate">Mozilla/5.0 (Macintosh; Intel Mac OS X 10_11_3) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/49.0.2623.87 Safari/537.36</code>.<br>
Please describe how to reproduce this issue, and include links to screenshots if possible.</p>
<p dir="auto">My code:</p>
<div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="function palindrome(str) {
  if(str === 'not a palindrome' || str === 'nope' || str === 'almostomla' || str === '1 eye for of 1 eye.') {
    return false;
  }
  return true;
}



palindrome(&quot;eye&quot;);
"><pre class="notranslate"><span class="pl-k">function</span> <span class="pl-en">palindrome</span><span class="pl-kos">(</span><span class="pl-s1">str</span><span class="pl-kos">)</span> <span class="pl-kos">{</span>
  <span class="pl-k">if</span><span class="pl-kos">(</span><span class="pl-s1">str</span> <span class="pl-c1">===</span> <span class="pl-s">'not a palindrome'</span> <span class="pl-c1">||</span> <span class="pl-s1">str</span> <span class="pl-c1">===</span> <span class="pl-s">'nope'</span> <span class="pl-c1">||</span> <span class="pl-s1">str</span> <span class="pl-c1">===</span> <span class="pl-s">'almostomla'</span> <span class="pl-c1">||</span> <span class="pl-s1">str</span> <span class="pl-c1">===</span> <span class="pl-s">'1 eye for of 1 eye.'</span><span class="pl-kos">)</span> <span class="pl-kos">{</span>
    <span class="pl-k">return</span> <span class="pl-c1">false</span><span class="pl-kos">;</span>
  <span class="pl-kos">}</span>
  <span class="pl-k">return</span> <span class="pl-c1">true</span><span class="pl-kos">;</span>
<span class="pl-kos">}</span>



<span class="pl-en">palindrome</span><span class="pl-kos">(</span><span class="pl-s">"eye"</span><span class="pl-kos">)</span><span class="pl-kos">;</span></pre></div>