mirror of
https://github.com/adambard/learnxinyminutes-docs.git
synced 2024-12-25 16:23:37 +03:00
decrements too
This commit is contained in:
parent
5129c2acd1
commit
a8d9e066ea
@ -234,10 +234,9 @@ class LearnHaxe3 {
|
||||
^ Bitwise exclusive OR
|
||||
| Bitwise inclusive OR
|
||||
*/
|
||||
|
||||
// increments
|
||||
|
||||
var i = 0;
|
||||
trace("Increments and decrements");
|
||||
trace("Pre-/Post- Increments and Decrements");
|
||||
trace(i++); // i = 1. Post-Increment
|
||||
trace(++i); // i = 2. Pre-Increment
|
||||
trace(i--); // i = 1. Post-Decrement
|
||||
|
Loading…
Reference in New Issue
Block a user