In this story we will discuss about the concept of prototype in JavaScript and how it helps solving the issues related to OOPs in JavaScript. But first let’s see what the problem actually is! let’s understand it via below code: Let’s say we have a constructor function Todo() that is…