What does the code inside the script element do?

It updates the heading's textIt updates the paragraph's textIt replaces the heading<html>
<body>
<h1 id="studio">SwimFit</h1>
<p id="trial">Try the free trial</p>
<script>
document.getElementById("studio").innerHTML = "Dance Studios"
</script>
</body>
</html>]]>

The code inside the script updates the heading's text.