Quote:
Unfortunately no, keeps returning characters at an index or empty string. I've looked all over google too, this should be correct.
So start by checking what you are passing to it, and how - use either JSFiddle or w3schools to build a "framework" for it, and test it:
alert(charAt('awesome', 2));
alert(charAt('awesome', 12));
function charAt(string, index) {
var charAt = Array.from(string)[index];
return charAt;
}
It doesn't do exactly what you are asked for in both cases, but that's because you haven't checked for it ...