Choose the least powerful language suitable for a given purpose.
I think it’d be great for everyone to read this article by Jeremy Keith.
In the web front-end stack — HTML, CSS, JS, and ARIA — if you can solve a problem with a simpler solution lower in the stack, you should. It’s less fragile, more foolproof, and just works.