FollowShareJavaScript functions activity question1Created 2 years ago 96 Views 1 CommentsJavascript @DORABABU7oeVi3@DORABABU7oeVi3Profile is locked. LoginPlease help me understand the logic for below function declaration. var factorial = function fac(n) { return n < 2 ? 1 : n * fac(n - 1); }; console.log(factorial(3));
Please help me understand the logic for below function declaration. var factorial = function fac(n) { return n < 2 ? 1 : n * fac(n - 1); }; console.log(factorial(3));