<!DOCTYPE html>
<html>
<body>
<h1>JavaScript String substring()</h1>
<script>
var str = "Learn To Code For Free";
document.write(str.substring(6, 12));
</script>
</body>
</html>