> For the complete documentation index, see [llms.txt](https://javascript-1.gitbook.io/javascript/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://javascript-1.gitbook.io/javascript/oop-and-fp.md).

# OOP and FP

Object Oriented Programming and Functional Programming are two different paradigm of JavaScript.

Schema (Function) + Java (Object) = JavaScript

![Schema (Function) + Java (Object) = JavaScript](https://2037876129-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LdbqCujxzeJqeQqlbM2%2F-Lna7pXBKa0ZTNpvSs7T%2F-Lna8gtx3Ge_8cQmjzeu%2Fimage.png?alt=media\&token=786fd98b-426f-41aa-a8c3-1f016a302206)

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.
