index.htmlfile is for displaying 2 textboxes for the user to input his/her name and age, and a button to calculate his/her birthyear.
myagerespectively. It then goes on to calculate your birth year based on today's date, and stores it in a variable called
text, calls the
navigator.notification.alertfunction and displays the result as a popup.
navigator.notification.alertfunction is a Core Cordova Plugins function that displays a popup dialog box on the screen. The third argument displays the text
Welcome to Monaca!as the title of the dialog box.