Skip to content

Instantly share code, notes, and snippets.

View ForPeople's full-sized avatar

ForPeople ForPeople

View GitHub Profile
@ForPeople
ForPeople / checkAge.js
Created June 23, 2016 16:15 — forked from rabter/checkAge.js
javascript age checker
var getAge = function(yyyymmdd) {
//REQUIRED: yyyymmdd 태어난 생년월일이에요. 예) 19800205
var
//리턴할 만 나이
age;
var yyyy = parseInt(String(yyyymmdd).substring(0,4),10);
var mmdd = String(yyyymmdd).substring(4,6) + String(yyyymmdd).substring(6,8);