Question 4 of 10Pro Only
Explain the Dependency Injection pattern. How does it promote loose coupling, and how would you implement it in a Node.js or TypeScript application?
Sample answer preview
## What is Dependency Injection? Dependency Injection is a design pattern where objects receive their dependencies from external sources rather than creating them internally.
dependency injectionInversion of Controlcomposition roottsyringeInversifyJSloose coupling