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