Eric Elliott and Douglas Crockford tout functional programming (or FP) and prototype-based OOP as the two “pillars” of…