9

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
😭😭😭

Comments
  • 0
    Recursion in javascript??? wat?
  • 1
    @MagicMirror Wanna my friends was telling me that you can actually use JavaScript for server side work, so I’d assume there was recursion
  • 1
    @magicMirror going over function basics with little exercises
  • 0
    @Spacecase94 I wish it was actual work... haven’t even gotten to that yet
  • 0
    @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.....
  • 0
    @magicMirror 🤷🏻‍♀️😢
  • 0
    @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.
  • 0
    @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.
Add Comment