I need help with the Date object in JS. I need a return that checks if the patient is an adult based on the DOB. I am unsure how to go about using the date object to get a return of age in milliseconds (Date returns milliseconds since 1 January 1970 UTC). If anyone has an idea, I appreciate it. <3
let today = Date.now()
function patient(fname, lname, origin, dob){
this.fname,
this.lname,
this.origin,
**this.dob,**
this.age = (today - dob)
this.isAdult = age > 18)}