Skip to content

john-richard13/Numbers.js

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Numbers.js

🔍 Overview

This project is a simple JavaScript-based number checker that analyzes user input and determines whether the number is even or odd, and positive or negative. It also includes a validation loop that ensures the user enters a valid number before processing.

🚀 Features

Input validation using isNaN(). Detection of:

Even or odd numbers; Positive, negative, or zero; Clean loop structure for user-friendly interaction; Lightweight and easy to integrate into any webpage;

🧠 How It Works

The program prompts the user for a value. A loop checks if the input is a valid number. Once validated, the script analyzes the number and displays the result using alert().

▶️ Usage

Simply open index.html in any browser. Ensure that script.js is in the same directory so the script loads correctly.

📄 License

This project is open-source under the MIT License.

About

A simple JavaScript program that validates user input and checks whether a value is a valid number. After validation, it identifies if the number is even or odd, and whether it is positive, negative, or zero. Ideal for beginners practicing conditionals and input handling.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors