Back

JavaScript functions activity question1

Created 4 years ago
143 Views
1 Comments
DORABABU7oeVi3
@DORABABU7oeVi3
DORABABU7oeVi3
@DORABABU7oeVi3Profile is locked. Login
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));
Comments
Please login to comment.