Skip to content

A clean and interactive JavaScript Age Calculator that calculates your exact age in years, months, and days. Built to practice JavaScript date handling and DOM interaction with a responsive UI.

License

Notifications You must be signed in to change notification settings

huzaifa-frontend/javascript-age-calculator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

📅 JavaScript Age Calculator

🌐 Live Demo: Click here to visit site

📋 Overview

This is a simple and responsive JavaScript Age Calculator built using HTML, CSS, and JavaScript. It prompts users to enter their birthdate and then calculates the exact age in years, months, and days.

  • 📆 User inputs birth day, month, and year
  • 🧮 Calculates accurate age including years, months, and days
  • 📱 Clean and responsive layout
  • 🔘 Interactive button to trigger age calculation

💻 Technologies Used

  • HTML5
  • CSS3 (Responsive layout and button styling)
  • JavaScript (Date handling and DOM interaction)

🚀 How to Use

  1. Clone the repository:
    git clone https://github.com/huzaifa-frontend/javascript-age-calculator.git
  2. Navigate to the project folder:
    cd javascript-age-calculator
  3. Open index.html in your browser.

🛠️ Features

  • Prompt-based input for day, month (in any format), and year
  • Calculates total age accurately with day/month adjustment
  • Error-resistant month parsing (supports abbreviations and numbers)
  • Clean, responsive design with center-aligned content

📁 File Structure

📦 javascript-age-calculator
 ┣ 📄 index.html
 ┣ 📄 style.css
 ┣ 📄 app.js
 ┣ 📄 README.md
 ┗ 📄 LICENSE
 

✨ Credits

  • Designed & Developed by Muhammad Huzaifa Karim.
  • No external libraries used.

📄 License

This project is licensed under the MIT License - see the LICENSE file for details.

✍️ Author

Muhammad Huzaifa Karim
GitHub Profile

🔄 Deployment

This project is deployed via GitHub Pages. Any changes pushed to the main branch will automatically update the live site.

📬 Contact

For any queries or collaboration requests, feel free to reach out via GitHub.


© 2025 Muhammad Huzaifa Karim

About

A clean and interactive JavaScript Age Calculator that calculates your exact age in years, months, and days. Built to practice JavaScript date handling and DOM interaction with a responsive UI.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published