GUVI
Back

JavaScript functions activity question1

Created 2 years ago
96 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.
 
Powered by habitate.io Habitate