DEV Community

Bhupesh Chandra Joshi
Bhupesh Chandra Joshi

Posted on

Function Declaration vs Function Expression: What’s the Difference?

What functions are and why we need them

Functions are objects in JavaScript ,object is key-value paired collection with connection to prototype. Object is contains to prototye ,when we create a function prototype assigned to similar to pouring a beer into the empty class, you can investigate

Everytime you create a function and it holds the hidden function.prototype property in itself, which is revealed on the example.

Top comments (0)