Question: PLEASE HELP ASAP! Thank you. I need to answer this within an hour. Question: Write a function in javascript called randomDate() that takes a random

PLEASE HELP ASAP! Thank you. I need to answer this within an hour.

Question: Write a function in javascript called randomDate() that takes a random date, month and year as variable(you don't need to use Math.random(), just pass a valid number) and returns a string with the full date as well as the difference in years between the random date and the current date. For ex.,

randomDate(20,03, 2015)

returns:

the date is Mon Apr 20 2015 00:00:00 GMT-0400 (Eastern Daylight Time)and the difference in years is 6

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!