var a = {
    digit:1,
    valueOf:function(){
        return this.digit++;
    }
}