0
What am I missing to compute the age?
let birthYear = 1992 var currentYear = 2020 var age = âcurrentYear - birthYearâ print (age) https://code.sololearn.com/cu0mR44SRmcN/?ref=app
1 Answer
+ 1
You have to remove the quotes around your calculation. Everything in quotes is a string and will not be calculated.