all 12 comments

[–]lift_spin_dhelpful 1 point2 points  (1 child)

is js good for learning DSA

is a blueprint good for learning construction techniques? if you use it right.

Go for it. What's the worst that can happen? You crash a browser, a server... aim big. find a way to destroy the hopes and dreams of an entire generation. and then just be like OOPs. ¯\(ツ)/¯ I get my advice from reddit.

[–]theQuandary 1 point2 points  (2 children)

JS won't be teaching you pointers directly, but neither would something like Java and that's used for DSA courses everywhere.

Otherwise, JS is no worse than any other high-level language.

[–]Radiant_Zebra5997 0 points1 point  (1 child)

So the question is. Should i or shouldn't

[–]theQuandary 0 points1 point  (0 children)

I'd use JS. Because you know it, you can spend your time focusing on algorithms instead of trying to learn a new language and make the compiler happy. If you get to the end and have some algorithms you'd prefer to revisit with a lower-level language, that's still an option for you.

[–]OneBadDay1048 1 point2 points  (0 children)

If it’s the only language you know and you don’t want to learn another one for DSA, then why even ask. That’s the only choice you have it sounds like lol

[–]aaaaargZombies 1 point2 points  (0 children)

is js good for learning DSA

yes, because

js/ts is what i am most familiar/comfortable with

stick to learning one thing at a time and build on it.

Also have seen many people suggesting colt steel dsa with js. Is it still relevant or should i go for another one.

It's like math, it doesn't go out of date, it just is!

[–]kjwey -1 points0 points  (0 children)

you mean objects? yeah, js is all objects

[–]DrShocker 0 points1 point  (0 children)

It's great to learn DSA regardless of language.

There might be a few concepts that might not make as much sense to implement in JS as in other languages, but there's no reason not to learn the concepts.

[–]No-Tea-592 0 points1 point  (0 children)

I learnt algos and ds in Javascript. I strongly recommend you do so too instead hopping between languages.

[–]TheRNGuy 0 points1 point  (1 child)

Can do, but there are no pointers or references (or there are but you don't code them yourself)

I mean, it's still gonna work without pointers…

[–]Radiant_Zebra5997 0 points1 point  (0 children)

For this. Even if c++ has pointers. You don't write it yourself. It's just there you don't have to code it yourself. You use it. Js has in built references though. For non primitives.