JS is complicated because the browser environment is complicated.
If it's going to be rendered by and live in a web browser it will either be complicated or limited in some way (like low code/no code tools).
If it's going to be rendered by and live in a web browser it will either be complicated or limited in some way (like low code/no code tools).
Dealing with interactivity in the browser is subtle, complex and full of edge cases. JavaScript is also a horrible, broken language that’s not really fit for purpose. We’ve collectively invested a lot of time and resources trying to improve the experience of working with it, but the point still stands.