Skip to main content
100%

Gist 23875167ddf54617f817bbd24632696b

✓ Published0🌍 Public
MMistyBlunch
Last edited Jul 11, 2018
Created on Jul 11, 2018

This example shows a JavaScript function that counts down from a given number and logs each value as either “par” (even) or “impar” (odd) to the console. It uses a `while` loop with a modulo (`%`) operator to test each integer against `0` and then prints the corresponding label. The function `func(10)` is called to process numbers from 10 down to 1, producing a simple text-based output without any graphical or charting libraries. The data source is the hardcoded initial value passed as an argument.

AI-generated description

Similar vizzes