recursionJavaScriptRecursionMediumWhat is essential to prevent infinite recursion?1A base case that stops the recursive calls2A while loop3A global counter variable4An async wrapperBack to list