I've recently started to learn javascript but I'm a bit stuck on understanding the flow of the following example of recursion:
/*
function power(base, exponent) { if (exponent == 0) return 1; else return base * power(base, exponent - 1); } console.log(power(2, 3)); // → 8
*/
Any help appreciated.