get-current-age
v0.0.2
Published
Returns age based on input date of birth
Downloads
1
Readme
get-current-age
This package returns the current age depending on the birthdate you input.
Installation
Install the package:
npm install get-current-date
Usage
Include the package in your JavaScript:
const age = require("get-current-date");
Get age:
const day = 30,
month = 9,
year = 2007;
const myAge = age(day, month, year);
console.log("I am " + myAge + " years old");