Q:

simple javascript, functions in objects

var rooms = {
bedroom: {
    info: "A dusty bed lies sideways in the midle of the room";

    north: function (  ) {
        //this function returns an error
    }
}
};

I cant work out why this returns an unexpected identifier
-- edit
thanks another question
in javascript the good parts he has
var myObject = {
    value: 0;
    increment: function (inc) {
        this.value += typeof inc === 'number' ? inc : 1;
    }
};

is this different to what I am doing?

A:

One should use a , inside of object literals when defining keys and values to separate them, not ;.
var o = { name: 'john', age: 13 }

