SpiceQA
Questions Tags Users Badges

How does javascript recursion function works

Madan Magar 0
Created Sep 23, 2022 Edited Sep 23, 2022
Viewed 14

This code is from Eloquent javascript book recursion function the function is about that given a number (argument 24) tries to find a sequence of such additions and multiplications that produces that number? I am having a hard time understanding it and how does the or operator (||) is working with return two function in line no. 9 and 10

function recursion javascript
Share
0 Answers
Related
Terms of service Privacy policy
Powered by Answer