 |
HTML Help Please Search for the answer to your question before asking it! Thanks.
|
| View previous topic :: View next topic |
| Author |
Message |
quartzy
Joined: 26 Dec 2007
Posts: 477
|
| Posted: Mon Jan 12, 2009 3:03 am re: javascript newbie |
|
|
I am self learning javascript and I cant unerstand how the foloowing.
Code: var a = 9; Value (9) I understand this
var b = 0; Value (0) understand this too
b = a; Value (9) and understand this
b = ++a; Value (11) dont understand how this became 11
b = a++; Value (12) dont understand how this became 12
b = a++; Value (13) dont understand how this became 13
Have been trying to get help in understanding these increments without fail so far, can anyone explain in simple terms why it is, what it is? |
|
|
quartzy
Joined: 26 Dec 2007
Posts: 477
|
| Posted: Mon Jan 12, 2009 6:26 am re |
|
|
| sorted |
|
|
| |
|
|
|
Powered by phpBB Search Engine Indexer
Powered by phpBB 2.0.19 © 2001, 2002 phpBB Group
|