When a function invokes itself does an identical copy of the function get created to be executed? and if that so is the execution of the original function get paused for the duplicate to run in a single-threaded language like javascript
function pow(x, n) {
return (n == 1) ? x : (x * pow(x, n - 1));
}
pow(2, 3); //8