Answered step by step
Verified Expert Solution
Link Copied!

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

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Repairing And Querying Databases Under Aggregate Constraints

Authors: Sergio Flesca ,Filippo Furfaro ,Francesco Parisi

2011th Edition

146141640X, 978-1461416401

More Books

Students also viewed these Databases questions

Question

Explain the chemical properties of acids with examples.

Answered: 1 week ago

Question

Write the properties of Group theory.

Answered: 1 week ago

Question

How is slaked lime powder prepared ?

Answered: 1 week ago

Question

Why does electric current flow through acid?

Answered: 1 week ago