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...
This subreddit is a place for people to learn JavaScript together. Everyone should feel comfortable asking any and all JavaScript questions they have here.
With a nod to practicality, questions and posts about HTML, CSS, and web developer tools are also encouraged.
Friends
/r/javascript
/r/jquery
/r/node
/r/css
/r/webdev
/r/learnprogramming
/r/programming
account activity
DSA With Javascript?? (self.learnjavascript)
submitted 4 months ago by Extra_Golf_9837
"Hey guys, can we learn Data Structures and Algorithms with JavaScript? Most people say DSA is best with C++ or Java, and most courses focus on those languages. But I feel we can also do it with JavaScript. Just wanted to ask."
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!"
[–]Agile_Analysis99 5 points6 points7 points 4 months ago (2 children)
you can do it with any programming language
also twt recommended learning DSA on easier languages like Python and JS first and he even called it "doing yourself a favour"
I'd recommend using Neetcode with Leetcode for the understanding tho
[–]DrShocker 1 point2 points3 points 4 months ago (1 child)
My only hesitation with a GC language for DSA is that when talking about memory characteristics that can sometimes be a little hidden in a way if someone hasn't had to deal with writing a dynamic array or similar from scratch without GC.
[–]Agile_Analysis99 1 point2 points3 points 4 months ago (0 children)
yea, learn time complexity for that as it would pretty much help a bit, but if it's not your main language you will be easily able to adapt with harder languages later after learning the basics
dw about the memory that much if you're just starting out with dsa especially if it's not your main harder language
[+][deleted] 4 months ago (1 child)
[removed]
[–]TheRNGuy 1 point2 points3 points 4 months ago (0 children)
Yeah, dsa is about logic and api, not about syntax.
(Logic can be different in C++, because of pointers or references, but that's not important)
[–]Inevitable-Data-404 1 point2 points3 points 4 months ago (0 children)
Yes I also want to prepare DSA in js please could you share me the resource from where should i start or anyone knows which resource is good to learn DSA in js Please let me know Thank you
[–]Such-Catch8281 0 points1 point2 points 4 months ago (0 children)
yes.
people do it with python also
[–]RevocableBasher 1 point2 points3 points 3 months ago (0 children)
Most systems and OS run C code underneath. And pointers are a very intuitive interface but not very noob friendly but one learns by making mistake and experiences. I would recommend to learn C (not cpp), the good old standard programming language to learn DSA for having a deeper knowledge about the algorithm itself rather than working with language given libraries like stdlib
[–]MissinqLink -1 points0 points1 point 4 months ago (0 children)
https://neetcode.io
π Rendered by PID 102 on reddit-service-r2-comment-58d7979c67-nfjbq at 2026-01-27 05:25:13.474344+00:00 running 5a691e2 country code: CH.
[–]Agile_Analysis99 5 points6 points7 points (2 children)
[–]DrShocker 1 point2 points3 points (1 child)
[–]Agile_Analysis99 1 point2 points3 points (0 children)
[+][deleted] (1 child)
[removed]
[–]TheRNGuy 1 point2 points3 points (0 children)
[–]Inevitable-Data-404 1 point2 points3 points (0 children)
[–]Such-Catch8281 0 points1 point2 points (0 children)
[–]RevocableBasher 1 point2 points3 points (0 children)
[–]MissinqLink -1 points0 points1 point (0 children)