Code

General Code

Counting to Five

Counters

In my last post, I discussed looping. I referenced checking the condition to see whether your code should keep looping or not. This is usually done with a counter (i). for (var i = 0; i < 3; i++;) { performSomeAction(); } Look closely at the i++ piece. ‘++’ is a shortcut for incrementing. Every […]

Counters Read More »