Understanding How Recursion works

Here’s a function in JavaScript:

const countUp = num =>{

Given that the function calls itself, we can instantly recognize that this code will cause an infinite loop which will log ‘counting …’ and the current number with each…