Ranter
Join devRant
Do all the things like
++ or -- rants, post your own rants, comment on others' rants and build your customized dev avatar
Sign Up
Pipeless API
From the creators of devRant, Pipeless lets you power real-time personalized recommendations and activity feeds using a simple API
Learn More
Comments
-
@MagicMirror Wanna my friends was telling me that you can actually use JavaScript for server side work, so I’d assume there was recursion
-
@Spacecase94 it is called nodeJS.
@lunawolf Yes. but why? ffs. using javascript to teach recursion... its like taking a knife, and trying to hammer nails with it. You can do it, but fuck - you going to cut yourself..... -
Crost41085y@magicMirror I don't see what the difference is unless you worry about the call stack limit. Its the same as any other language for learning recursion.
-
@craig939393 wel.... no.
JS is reallllllly bad at recursion for two reasons.
1. call stack limitation.
2. local vs global variable scoping.
First time you learn recursion, and the IDE can't tell the variable scope? gl debugging that.
Related Rants
Took 6 months off from coding...
sat in a JavaScript class today and couldn’t remember what a base case for recursion was...
Dear tutor,
I swear I can be stupid but please bear with me, I try really hard
😭😭😭
devrant
student