It also allows you to add your own multi candidates to existing operators. Data and behavior are bundled together in objects; state changes occur through methods. Achieved through classes and objects; methods define behavior, attributes define state. In this example, map applies the square function to each item in the list numbers . The closure…