<html>
<body>
<h2>JavaScript String Properties</h2>
<p>The length property returns the length of a string:</p>
<p id="demo"></p>
<script>
var txt = "ABCDEFGHIJKLMNOPQRSTUVWXYZ";
document.getElementById("demo").innerHTML = txt.length;
</script>
</body>
<!-- Mirrored from www.w3schools.com/whatis/tryit.asp?filename=trywhatis_js_string_length by HTTrack Website Copier/3.x [XR&CO'2014], Mon, 27 Jan 2020 02:56:09 GMT -->
</html>