<html>
<body>
<h1>The Element Object</h1>
<h2>The innerText Property</h2>
<button id="myBtn">Try it</button>
<p>The text content of the button element is:</p>
<p id="demo"></p>
<script>
let text = document.getElementById("myBtn").innerText;
document.getElementById("demo").innerHTML = text;
</script>
</body>
</html>