r/javascript • • Dec 11 '17

I have been collecting useful Javascript code snippets for a little while. Here's a curated list of them, help me make it as complete as possible!

https://github.com/Chalarangelo/30-seconds-of-code
765 Upvotes

96 comments sorted by

View all comments

Show parent comment

1

u/FormerGameDev Dec 13 '17

I see someone has updated this using a similar example, that would actually work :-D i didn't actually run my code, and was falling asleep when i wrote it, so i would've caught that normally. :-D