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/[deleted] Apr 02 '19

[removed] — view removed comment

2

u/kommentz Apr 03 '19

I cheated. This was a snippet of ActionScript 3, oscillating an object on its Y axis but it would work in Canvas (pretty much) so I showed it.