1var str = new String("This is string");
2console.log("str.charAt(0) is:" + str.charAt(0));
3console.log("str.charAt(1) is:" + str.charAt(1));
4console.log("str.charAt(2) is:" + str.charAt(2));
5console.log("str.charAt(3) is:" + str.charAt(3));
6console.log("str.charAt(4) is:" + str.charAt(4));
7console.log("str.charAt(5) is:" + str.charAt(5));