Dec 4, 2020
The effort is good, but you only got half way there. For dependency injection your code needs to make use of a service container whereby you can change out your dependencies via configuration or environment or something similar. What you've demonstrated is modularity which is the first step to making DIP, but your Example class still depends directly on your './utils.js' which depends on axios.