> Help? i got prompt boxes to come up. But no idea how to store the info. http://atlantis.cit.ie/labs/javascript-l1/js-var

Help? i got prompt boxes to come up. But no idea how to store the info. http://atlantis.cit.ie/labs/javascript-l1/js-var

Posted at: 2014-12-18 
Like this:

var birthyear = parseInt( promt("Please enter the year you were born"), 10);

Now you can do something like this:

HTML:



Age:





JavaScript:

document.querySelector( "#age").innerHTML = 2014 - birthyear;

when i type age into the prompt. nothing comes up. just this ..