DEV Community

raghuncs
raghuncs

Posted on

1 2

Is this a case of recursion?

function a(){
b();
}
function b(){
a();
}
b();

Top comments (1)

Collapse
 
smammar profile image
SMAmmar

I think not, cause because in recursion the function call itself again and again.
But in this scenario func b is calling a.So in my opinion it is not a recursive case.

A Workflow Copilot. Tailored to You.

Pieces.app image

Our desktop app, with its intelligent copilot, streamlines coding by generating snippets, extracting code from screenshots, and accelerating problem-solving.

Read the docs

👋 Kindness is contagious

Please leave a ❤️ or a friendly comment on this post if you found it helpful!

Okay