1. Why is dependency injection central to NestJS architecture?
- It improves routing speed
- It enables loose coupling and testability
- It replaces middleware
- It simplifies HTTP adapters
Reveal sample answer and explanation
Answer: It enables loose coupling and testability
DI promotes loose coupling and easier testing.