What are the best practices for structuring a large JavaScript project?

I’m working on a large JavaScript project and want to ensure that it’s well-structured and maintainable. I’ve read that project organization can significantly impact development efficiency and scalability.

What are some best practices or recommended patterns for structuring a large JavaScript application? I’m interested in advice on folder structure, modularization, and managing dependencies.