decrements too

This commit is contained in:
John Gabriele 2019-09-29 23:21:42 -04:00 committed by GitHub
parent 5129c2acd1
commit a8d9e066ea
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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