Question: I have been using/calling functions from objects like this:

```
var object = { 
    fn: function(){ 
        alert('i can see it!'); 
    }
}; 
object.fn(); // it works

```

but I don't know how to call function from mere `{}` object. 

```
{
    fn: function() {
        alert('i can\'t see it');
    }
}

fn(); // wont work ?

```

I want to know why this is not working? Is there a way to make it work?

Answer: 
fn is inside the blocks and not inside the object. Passing name-value just inside blocks ie {} dont work. Or atleast give some label to the block.
Here is the proper syntax to define a "standalone" function (with no wrapper object) :

```
var fn = function () { ... };
function fn() { ... };

```