using alert function to display var yearBorn