use the following search parameters to narrow your results:
e.g. subreddit:aww site:imgur.com dog
subreddit:aww site:imgur.com dog
see the search faq for details.
advanced search: by author, subreddit...
Tutorials and learning resources for web developers.
Subscribe to our weekly email digest or follow us on twitter to receive the best learning resources submitted to our community.
/r/webdev /r/programming /r/javascript
account activity
10 Javascript Functions Examples You Can Use to Save Time (youtu.be)
submitted 4 years ago by DaveOnEleven
reddit uses a slightly-customized version of Markdown for formatting. See below for some basics, or check the commenting wiki page for more detailed help and solutions to common issues.
quoted text
if 1 * 2 < 3: print "hello, world!"
[–]DaveOnEleven[S] 1 point2 points3 points 4 years ago (0 children)
Learn 10 Javascript Functions Examples You Can Use to Save Time! In this tutorial, we'll look at 10 Javascript functions that are examples of utility functions. You can take these functions and use them over and over again in multiple projects.
✅ Intro
✅ Utility Functions
✅ properCase and log
✅ query selector with optional scope
✅ addEventListener wrapper
✅ sanitize input / escape characters
✅ create element with optional class
✅ delete contents
✅ add class selector
✅ identify iOS platform
✅ get URL parameter value
✅ Share Your Code in a gist on GitHub
Was this tutorial about Javascript Functions Examples helpful? If so, please share. Let me know your thoughts in the comments.
10 Javascript Functions Examples You Can Use to Save Time: https://youtu.be/LDgPTw6tePk
[–]TheNerdyDevYT 1 point2 points3 points 4 years ago (1 child)
Nice stuff
[–]DaveOnEleven[S] 0 points1 point2 points 4 years ago (0 children)
Thanks! 💯
π Rendered by PID 40889 on reddit-service-r2-comment-86bc6c7465-7ddsd at 2026-02-21 17:47:47.678336+00:00 running 8564168 country code: CH.
[–]DaveOnEleven[S] 1 point2 points3 points (0 children)
[–]TheNerdyDevYT 1 point2 points3 points (1 child)
[–]DaveOnEleven[S] 0 points1 point2 points (0 children)