Thanks so much for this example. Life and solving problems is about making choices. Being open to ideas builds better teams, IMO.
You explain this very simply, and also the example helps me to understand the concept.
This is quiet simple but still has some depth. In fact, I've never seriously thought about OOPS paradigm in JS, since whenever it's OOPS, it's server-side Java that comes to my mind.
Obum
Full-Stack Blockchain, Mobile, & Web Developer. || Google Developer Expert (GDE) Dart & Flutter.
Thanks for explaining this very well. Especially for using a simple scenario to demonstrate the difference in paradigm.
You've said knowing when is best to use them takes time and experience.
But please go ahead to specify when it is ideal to use which paradigm or even to use both, so that one will be saved that time and experience and will just implement the best method.