$ 0 0 const isDate = (str) => String(new Date(str)) !== 'Invalid Date'so tonight i'm gonna party up to isDate('12/31/999999')