JS Test: Tick

Last modified by Sergiu Dumitriu on 2018/10/10 17:05

Task: What does the following code return? Why?

var a = 1,
    b = function a(x) {
        x && a(--x);
        outcome += ' tick';
    };
var outcome = a;
b(2);
outcome;