r/javascript • • Mar 18 '19

What's your favorite, most useful javascript one-liner?

385 Upvotes

422 comments sorted by

View all comments

Show parent comments

1

u/SarahC Mar 19 '19

Where'd yearsFromNow come from?

1

u/zombarista Mar 19 '19

Whoops changed a variable name halfway through the example hoping it would make more sense.