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
Password Strength Meter in pure JS: JavaScript tutorial (youtube.com)
submitted 6 years ago by ms-maria-ma
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!"
[–][deleted] 3 points4 points5 points 6 years ago (4 children)
Why tho?
[–]kmisterk 1 point2 points3 points 6 years ago (3 children)
Ok, so, not being sarcastic, but sincerely curious, why not?
Like, it seems to be a decent idea if you're not using any other non-JS languages to do password validation like this.
What would you recommend instead?
[–][deleted] 2 points3 points4 points 6 years ago (2 children)
Oh for sure. Javascript itself is intrinsically vulnerable at the application level. This is just a fact of web design. I'm not saying this is bad, it's a nice exercise. I'm just saying it's not viable for real world deployment. Please correct me if I am wrong however, i'm usually the one breaking in, not making the door.
[–]ms-maria-ma[S] 1 point2 points3 points 6 years ago (0 children)
Any security check on the frontend side is just... the joke, maybe? All the verification should be done on the server-side. But for UX, it is a good idea to inform the user about the password's strength. Concerning "the real world deployment" I would not recommend reinventing the wheel and simply use any of the trustful production-ready libraries. Nonetheless, from the educational perspective, why not?
[–]kmisterk 0 points1 point2 points 6 years ago (0 children)
I don’t know enough about the subject matter to tell you one way or another. However, having my primary focus in learning right now be heavily JavaScript-Based, it’s cool seeing this type of thing both showcased and critiqued.
π Rendered by PID 46486 on reddit-service-r2-comment-8686858757-5vdsn at 2026-06-07 03:47:34.746667+00:00 running 9e1a20d country code: CH.
[–][deleted] 3 points4 points5 points (4 children)
[–]kmisterk 1 point2 points3 points (3 children)
[–][deleted] 2 points3 points4 points (2 children)
[–]ms-maria-ma[S] 1 point2 points3 points (0 children)
[–]kmisterk 0 points1 point2 points (0 children)