title: Create a function that takes a word and returns true if the word has two consecutive identical letters
body: <p>// Create a function that takes a word and returns true if the word has two consecutive identical letters.</p>
  <p>What am I doing wrong?</p>
  <pre><code>module.exports = (word) =&gt; {
      for (let i = 0; i &lt;= word.length; i++) {
          for (let j = i + 1; j &lt;= word.length; j++) {
              if (word[j] == word[i]) {
                  return true;
              }
          } return false;
          
      } 
  
  };
  </code></pre>