title: Alternative to charAt method in javascript
body: <p>Here is the task at hand:</p>
  <blockquote>
  <p>Write a function called charAt which accepts a string and an index (number) and returns the character at that index.</p>
  <p>The function should return an empty string if the number is greater than the length of the string.</p>
  </blockquote>
  <p>The kicker is that you CAN NOT use the built in charAt method.</p>
  <p>Am I doing what it is asking correctly aside from not including the if statement? Also, what would a correct implementation of that look like? (New to JS so my apologies in advance).</p>
  <pre><code>function charAt(string, index) {
    var charAt = string[index];
    return charAt;
  }
  </code></pre>