Answered step by step
Verified Expert Solution
Question
1 Approved Answer
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
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started