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);
document.write(a + "<br>");
var b = str.charCodeAt(1);
document.write(b + "<br>");
var c = str.fromCharCode(65);
document.write(c + "<br>");
var d = str.concat(str2);
document.write(d + "<br>");
var e = str.split(" ");
document.write(e + "<br>");
var f = str.repeat(2);
document.write(f + "<br>");
var g = str.slice(3,10);
document.write(g + "<br>");
var h = str.substr(2,5);
document.write(h + "<br>");
var i = str.substring(3,5);
document.write(i + "<br>");
var j = str3.toString();
document.write(j + 20 + "<br>");
var k = str.valueOf();
document.write(k + "<br>");
</script>
</head>
<body>
</body>
</html>