• Courses
  • Code Compiler
  • Discuss
  • Pricing
  • Teams
Menu
- 1

Logic behind age calculator

Does anyone know the logic behind age calculator because i want to build age calculator in react.js

javascriptlogicagecalculator
30th Jan 2022, 4:44 AM
EsaKurniawan
2 Answers
+ 2
age = current_year - year_of_birth
30th Jan 2022, 5:57 AM
Tibor Santa
Tibor Santa - avatar
+ 2
EsaKurniawan https://code.sololearn.com/W6tiW3n3fM4H/?ref=app
30th Jan 2022, 7:49 AM
AĶ¢J
AĶ¢J - avatar

Often have questions like this?

Learn more efficiently, for free:

  • Introduction to Python

    7.1M learners

  • Introduction to Java

    4.7M learners

  • Introduction to C

    1.5M learners

  • Introduction to HTML

    7.5M learners

See all courses
Hot today
Audio adding
1 Votes
playground input
0 Votes
What is problem in this code
0 Votes
Stuck in Quize
1 Votes
C Program
0 Votes
This Program Does Something Weird. Can You Explain Why?
1 Votes
Software developer
0 Votes
Asking for final year project ideas!
1 Votes
How does JavaScript's event loop handle asynchronous operations like setTimeout, Promises, and async/await, and what are the dif
1 Votes
ŠµŃŃ‚ŃŒ кто на Ń€ŃƒŃŃŠŗŠ¾Š¼ разговаривает?
0 Votes