Code Monkey home page Code Monkey logo

age-in-days's Introduction

Age in Days App

Overview

This web app is a simple tool that calculates a person's age in days given the birth year. It consists of an HTML file to structure the content, a CSS file for styling, and a JavaScript file to handle the calculation.

Technologies Used

  • HTML
  • CSS
  • JavaScript

Installation

  1. Clone the repository
  2. Open the index.html file in your web browser

Usage

  • Enter your birth year and click "Enter birth year" button
  • To reset, click the "Reset" button

Development Process

  • Created the index.html file with the basic structure, including the wrapper, buttons, and result elements.
  • Added style.css to apply the styling to the app, using the Roboto font and setting the background colors and button styles.
  • Implemented the ageInDays and reset functions in the script.js file to calculate the age in days and handle the reset functionality.
  • Tested the app in the browser and fixed issues related to the calculation and styling to ensure proper functionality and visual appearance.

Errors and Fixes

  • Fixed the calculation in the ageInDays function to correctly calculate the age in days based on the input birth year.
  • Adjusted the button styling in style.css to ensure proper button alignment and appearance.

age-in-days's People

Contributors

myseait avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.