jPaq Example - Counting Squares On A Checker Board

How many squares are there on a checker board?  Most people would say there are only 64 squares, but others would say what about the board itself?  Isn't that a massive square?  How about the squares that are half the size of the entire board?  First, try to figure out how many squares are on the checker board below.  After that, verify your answer by clicking on the following button:
Start Counting

Checker Board Resizer

Use this form to resize the checkerboard.

Resize It

Here is the jQuery and jPaq code that is used:

Applicable Parts

Related Examples

  1. Currying
    At times, you may want to call a function a number of times, but you may notice that the first few arguments are always the…
  2. Cartesian Product
    A few weeks ago, I came across a question about finding the cartesian product of two or more arrays in JavaScript.  The following is…