An object stores functions. And functions are used to create objects.
Doesn’t it looks like chicken and egg problem?
Thinking about a Javascript compiler that stores the code and starts running it…
Where does it start from? Does it start from an object. Or does it start by calling a function?
If I say the program starts from an object, then where does that object come from? Or if I say it starts from a function. Where does this function reside, because it should reside inside an object.
For example. When I call a main ( ) in C program. This main( ) too should be residing inside some Object? But again, where did that object come from? Does this have any end?