node package manager
We need your input. Help make JavaScript better: Take the 2017 JavaScript Ecosystem survey »

how-old-i-am

How old I am ?

Get your age dynamicatly

var getMyAge = require('how-old-i-am');
 
var myAge = getMyAge(1992, 8);

API

function(birthYear, birthMonth)

  • Your birth year
  • your birth month, note: remember it's like arrays (start from 0)