Question · JavaScript and TypeScript course · Module 5: Advanced JavaScript
Modules in Project Structure
What is the best practice for organizing modules in a JavaScript project?
Answer options
- Creating a separate file for each variable
- Dividing into thematic modules: errors/, services/, utils/ with a clearly defined API
- Putting all code in one large file
- Using only global variables without modules
You can check the correct answer by solving this task in the CodeWorlds game.