What am I missing to compute the age? | Sololearn: Learn to code for FREE!
Novo curso! Todo programador deveria aprender IA generativa!
Experimente uma aula grƔtis
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

31st May 2020, 10:06 PM
Alex
1 Resposta
+ 1
You have to remove the quotes around your calculation. Everything in quotes is a string and will not be calculated.
31st May 2020, 10:15 PM
Sandra Meyer
Sandra Meyer - avatar