0

I want JavaScript code for less than 18 years

person have date of birth less than 18 years I want alert person not eligible for voting .comparing year is 2017 Aug 18 with end user date if birth

18th Aug 2017, 6:39 PM
Vaddiparthi Rajeev
Vaddiparthi Rajeev - avatar
10 Antworten
+ 3
Please do not forget, to give the best answer checkmark. To the user that best answers your question.
18th Aug 2017, 7:06 PM
Manual
Manual - avatar
0
Do u want to compare it with DOB?
18th Aug 2017, 7:05 PM
pankaj sharma
pankaj sharma - avatar
0
yes I want to compare with date of birth with 2017 year .if less than thrown alert
19th Aug 2017, 4:00 AM
Vaddiparthi Rajeev
Vaddiparthi Rajeev - avatar
- 1
So u can do this get users DOb get today'date parse them both into milliseconds using parse method subtract them if result is >=1555200000 then throw alert
19th Aug 2017, 4:17 AM
pankaj sharma
pankaj sharma - avatar
- 1
U can read books to uplift basic knowledge and do challenges online like from codechef.com.And most important keep coding
19th Aug 2017, 7:18 AM
pankaj sharma
pankaj sharma - avatar
- 1
In clg our main focus is to become perfect at something not kowing everything no,basic knowlegde wont get u a good job thats why people perfect their skills on only one topic so that they can compete anywhere and get best for them from my advice learn some good programming using c and then go for learning algorithms and data structure then for which ever language u want to perfect urself at
19th Aug 2017, 10:54 AM
pankaj sharma
pankaj sharma - avatar
- 1
For freshers building basic isbsuffice but to level up contest like acm-icpc or codejam you need to learn other stuff
19th Aug 2017, 12:12 PM
pankaj sharma
pankaj sharma - avatar
- 1
Start learning now
19th Aug 2017, 12:20 PM
pankaj sharma
pankaj sharma - avatar
- 1
Have u done any internship before
19th Aug 2017, 12:33 PM
pankaj sharma
pankaj sharma - avatar
- 1
Then go for internship at internshala or twnty19.co my frnd did it and got good jobs
19th Aug 2017, 12:35 PM
pankaj sharma
pankaj sharma - avatar