HackerRank Problem Link
JS Solution
function factorial(n) { return n ? n * factorial(n - 1) : 1; }
Last updated 3 years ago
Was this helpful?