0

All results return"Youre too old" Why is that?

var firstName =prompt("Enter number of letters first name"); var secondName =prompt("Enter number of letters in second name"); var totalNum = (firstName + secondName ); if (totalNum > 30) { alert('Youre very old'); } else { alert('Youre very young'); }

20th May 2020, 5:14 PM
KWASI NYARKO
KWASI NYARKO - avatar
2 Respostas
20th May 2020, 5:17 PM
HonFu
HonFu - avatar
+ 1
HonFu 😂 finally got it. Thanks alot
20th May 2020, 5:29 PM
KWASI NYARKO
KWASI NYARKO - avatar