Code only works in dev tools debugger

Hi @PaulOB in a separate file on the same level. alerting “hi” when running the toggler function works.

</body>

<script src="./app.js"></script>

</html>

Best, Sven
Bildschirmfoto 2021-03-18 um 09.44.54