In Javascript it would be:
var newObject = { \'propertyName\' : \'propertyValue\' }; newObject.propertyName; // retur
obj = type('obj', (object,), {'propertyName' : 'propertyValue'})
there are two kinds of type function uses.