Advertisement
KodingKid

How to calculate how old someone is in Javascript

Apr 19th, 2021
126
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. var age = 1983; //random year - enter your birth year here!
  2. var year = 2021;
  3. var z = year - age;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement