title: Changing Letters Algorithm, works in JSBIN but not in Coderbyte, seeking clarification
body: <p>I'm going through the CoderByte exercises and I came across the following problem: </p>
  
  <p><em>>Using the JavaScript language, have the function LetterChanges(str) take the str parameter being passed and modify it using the following algorithm. Replace every letter in the string with the letter following it in the alphabet (ie. c becomes d, z becomes a). Then capitalize every vowel in this new string (a, e, i, o, u) and finally return this modified string.</em> </p>
  
  <p>I wrote out it out in JSBin and it worked fine (even te, but in CoderByte it didn't. I want to ask the community if what I wrote is correct and it's an issue on CoderByte, or if my code is wrong and the issue is with JSBin. </p>
  
  <p>The code is as follows:</p>
  
  <pre><code>function LetterChanges(str) {
      var iLetters = str.split('');
      var newStr = [];
  
      for (var i = 0; i &lt; str.length; i++) {
          if (/[a-y]/ig.test(iLetters[i])) {
              newStr[i] = String.fromCharCode(iLetters[i].charCodeAt(0) + 1);
              if (/[aeiou]/ig.test(newStr[i])) {
                  newStr[i] = newStr[i].toUpperCase();
              }
          } else if (/[z]/ig.test(iLetters[i])) {
              newStr[i] = "A";
          } else if (/[^A-Z]/ig.test(iLetters[i])) {
              newStr[i] = iLetters[i];
          }
      }
  
      return newStr.join('');
  }
  </code></pre>