DEV Community

Discussion on: Introduction to recursion (Part 1 Theory)

Collapse
 
brojenuel profile image
Jenuel Oras Ganawed • Edited

Is rexursion something looks like this
Function add(number) {
return number <= 10? add(number++) : 'greater than 10'
}

Collapse
 
abdelrahman profile image
Abddelrahman Saad

Not exactly, as mentioned before recursion is something we often use it to loop inside a big number of items but in a cleaner and efficient way ❤️

Collapse
 
brojenuel profile image
Jenuel Oras Ganawed

Can u give a code example thanks 😊👍

Thread Thread
 
abdelrahman profile image
Abddelrahman Saad

Sure, in a couple of hours the next part will be available with the code example, I'll send the link to you ❤️

Thread Thread
 
abdelrahman profile image
Abddelrahman Saad

Hey, how are you, here's the next part I hope you like it❤️
dev.to/abd_elrahmanmo/introduction...