var birthyear = parseInt( promt("Please enter the year you were born"), 10);
Now you can do something like this:
HTML:
JavaScript:
document.querySelector( "#age").innerHTML = 2014 - birthyear;
when i type age into the prompt. nothing comes up. just this ..