Add JavaScript inside the script element.

<html>
<body>
<h1>Retro Movie Rental</h1>
<script>
var totalMovies = 340;
</script>
</body>
</html>]]>

Make sure to pick var followed by totalMovies and then =, 340, ;.