JS String Methods - II

 
<!DOCTYPE html>
<html>
<head>
    <title>JavaScript</title>
    <script>
        var str = "JavaScript is a Great is Language";
        var str2 = "Hello";
        var str3 = 50;
        
        var a = str.charAt(3);  /* CharAt Method */
        document.write(a + "<br>");

        var b = str.charCodeAt(1); /* CharCodeAt Method */
        document.write(b + "<br>");

        var c = str.fromCharCode(65); /* FromCharCode Method */
        document.write(c + "<br>");

        var d = str.concat(str2); /* Concat Method */
        document.write(d + "<br>");

        var e = str.split(" "); /* Split Method */
        document.write(e + "<br>");

        var f = str.repeat(2); /* Repeat Method */
        document.write(f + "<br>");

        var g = str.slice(3,10); /* Slice Method */
        document.write(g + "<br>");

        var h = str.substr(2,5); /* Substr Method */
        document.write(h + "<br>");

        var i = str.substring(3,5); /* Substring Method */
        document.write(i + "<br>");

        var j = str3.toString(); /* Tostring Method */ 
        document.write(j + 20 + "<br>");
        
        var k = str.valueOf(); /* Valueof Method */
        document.write(k + "<br>");
    </script>
</head>
<body>
</body>
</html>