Hoe JavaScript-script in te voegen vóór de `</body` tag

It’s mainly this sentence, the previous ones are not a problem

    <script>
        document.addEventListener('DOMContentLoaded', function () {
            const player = new Plyr('video');
        });
    </script>
</body >