Question: Hello, I need help with the first question. how to create a variable in javascript to hold the current year (four degit year). thanks in

 Hello, I need help with the first question. how to create

Hello, I need help with the first question. how to create a variable in javascript to hold the current year (four degit year). thanks in advance

for information. prompting the user to input their name, which you will write to the page-just like you did fo above. . In addition to the instructions in the tutorial from the book, you will also add the following to this page: o Create a variable to hold the current year (four digit year). o Prompt the user to input their birth year (four digits). o Calculate the user's possible age by subtracting their entered year from the variable containing the current year. o Now, simply return the user's age with an alert message

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!