Interview Q&A / Object-Oriented Programming

INTERVIEW Q&A · 69 QUESTIONS

Object-Oriented Programming interview questions

The four pillars, interfaces, abstract classes and design basics.

  1. How do you do dependency injection in JavaScript without any framework?

    Pass the dependency as an argument, either to a factory function or a class constructor. A function that receives what it needs is already using dependency injection.

    BeginnerQuick answer1 min read