var rooms = {
bedroom: {
info: "A dusty bed lies sideways in the midle of the room";
north: function ( ) {
}
}
};
I cannot understand why this returns an unexpected identifier
- change thanks one more question
in javascript the good parts that it has
var myObject = {
value: 0;
increment: function (inc) {
this.value += typeof inc === 'number' ? inc : 1;
}
};
different from what i do?
fxmle source
share