Would the following:

```
function ClassName() {}

```

be equal to:

```
var ClassName = function(){}

```

?

I'm trying to do the following:

```
MODULE = (function(x) {

    x.ClassName = function(){}
    // add some functions to ClassName class...
    return x
})(MODULE);

```

Given what I've read elsewhere on how to create a class, I'm not sure if this is correct?

UPDATE:
Ok you can just use object literals as well e.g.

```
var ClassName = {}

```