<html>
<body>
<h1>The Element Object</h1>
<h2>The lastElementChild Property</h2>
<select id="mySelect" size="5">
<option>Audi</option>
<option>BMW</option>
<option>Saab</option>
<option>Volvo</option>
</select>
<br><br>
<p>The text of the last child of the select element is:</p>
<p id="demo"></p>
<script>
const element = document.getElementById("mySelect");
document.getElementById("demo").innerHTML = element.lastElementChild.text;
</script>
</body>
</html>