Skip to main content
100%

Leap year finder

✓ Published0🌍 Public
Aabonello
Last edited Mar 9, 2018
Created on Jun 16, 2018

This visualization presents a minimal command-line leap year checker. It displays a simple yes-or-no output for a given year, illustrating the leap year rule. The code uses a plain JavaScript function, `isLeap`, to calculate the result with a conditional expression that checks divisibility by 4, 100, and 400. It logs the answer to the console with `console.log`, and the example invokes the function with the string `'2016'` as its input. No graphical or data-driven libraries are involved; the rendering approach is text-based output.

AI-generated description

Similar vizzes