Calculate age form
by cespinoza
HTML
<input id="year" type="number" placeholder="Enter the year you born">
<input type="button" value="calculate">
<p>
you have <span id="age">X</span> years!
</p>
JavaScript
// User story:
// As a user I want to be able to calculate my age given my year of birth
// Every time I'd clicked on a button the webpage has to show my the age using
// my input.
// Hints:
// Use the span tag "age" to show the result
// How to get the current year code is already there.
// Replace the X with the calculated age when the user will click the button.
const currentYear = new Date().getFullYear();