<html>
<body>
<h2>JavaScript String Length</h2>
<p>The length property returns the length of a string:</p>
<p id="demo"></p>
<script>
var txt = "ABCDEFGHIJKLMNOPQRSTUVWXYZ";
var len = txt.length;
document.getElementById("demo").innerHTML = len;
</script>
</body>
<!-- Mirrored from www.w3schools.com/howto/tryit.asp?filename=tryhow_js_string_length by HTTrack Website Copier/3.x [XR&CO'2014], Wed, 21 Dec 2022 16:51:10 GMT -->
</html>