Properties are assigned to objects in the following way –

obj ["class"] = 12;
or
obj.class = 12;