Skip to content

Project developed with the objective of calculating the age and year of birth of the user.

Notifications You must be signed in to change notification settings

alicemalzac/AgeCalculator

Repository files navigation

Age Calculator

Age Calculator is a Node.js project that has 2 routes called on the app.js archive:

age.js - calculates age from user's year of birth
birth.js - calculates year of birth from user's age

Usage

At a terminal, run: 
npm init
npm install express --save
node app.js
To test age.js, run the following url at your webpage:
http://localhost:4000/age?birth= 

Obs.: You have to insert your year of birth after the equal sign

To test birth.js, run the following url at your webpage:
http://localhost:4000/birth?age= 

Obs.: You have to insert your age after the equal sign

Contributing

Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.

About

Project developed with the objective of calculating the age and year of birth of the user.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published