Skip to content

Latest commit

 

History

History
32 lines (27 loc) · 791 Bytes

README.md

File metadata and controls

32 lines (27 loc) · 791 Bytes

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.