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?
;instead of a,. That is all.