OOP and FP
Object Oriented Programming and Functional Programming are two different paradigm of JavaScript.
Last updated
Object Oriented Programming and Functional Programming are two different paradigm of JavaScript.
Last updated
Schema (Function) + Java (Object) = JavaScript
Function's are receiving a data and gives the different data as we required.
Object is like building robot, head, legs, hand and body separately and combining each of them.
Combining both object and functions we can archive many thing in JavaScript. Without functions we can't archive closures and without objects we can't archive Prototype.