<html>
<body>
<h2>JavaScript String Methods</h2>
<p>ECMAScript 5 allows property acces on strings. but read only:</p>
<p id="demo"></p>
<script>
var str = "HELLO WORLD";
str[0] = "A"; // Does not work
document.getElementById("demo").innerHTML = str[0];
</script>
</body>
<!-- Mirrored from www.w3schools.com/js/tryit.asp?filename=tryjs_string_prop2 by HTTrack Website Copier/3.x [XR&CO'2014], Mon, 27 Jan 2020 02:39:29 GMT -->
</html>