Javascript
How would you create a JavaScript function that converts a date input into a readable time-elapsed format, and what are your considerations for varying time intervals and localization?
Frontend Engineer
Amazon
Apple
Dropbox
Tech Mahindra
Qualcomm
Amazon Web Services
Interview question asked to Frontend Engineers interviewing at Dropbox, Gamigo, HCL Technologies and others: How would you create a JavaScript function that converts a date input into a readable time-elapsed format, and what are your considerations for varying time intervals and localization?.