HTML and CSS Reference
In-Depth Information
1
> obj2.increment()
2
> obj2.increment()
3
We can attempt to change the internal state of the object by calling the following:
> obj2.i = 10
but all this will do is create a new property on the object:
> obj2.i
10
This is not the same property that is being used as the incrementing state of the object:
> obj2.increment()
4
> obj2.increment()
5
> obj2.increment()
6
Search WWH ::




Custom Search