New course! Every coder should learn Generative AI!
Try a free lesson0
Loops in function
guys i want to know that can we use loops in function.
2 Answers
0
Of course. A function can be thought as a block of code, so it can contain everything even another function declaration.
0
Yes, just try it in the playground.