Alex Holguin• 410
@JAleXDesigN
Posted
Hi Felix, since you are re-assigning values to those variables you can use let
instead of var
let newAge = actualYear - dateToCalculate[2]
let newMonth = 0
let newDay = 0
In this way the code would work the same and you would not use var.
Marked as helpful
1