var string = "this is a string"; // outputs t console.log(string.charAt(0)); // outputs s console.log(string.charAt(3));