Glossary: Software Design Patterns in JavaScript
Dependency injection
Also written: DI, injection, injected
Giving code its dependencies from outside instead of letting it create or find them. That lets a test pass in fakes instead of touching disk, email or the real clock.
Where the book teaches it
Related terms
Constructor injectionDependency inversion principle (DIP)Composition rootService locator