79473248

Date: 2025-02-27 16:02:17
Score: 3
Natty:
Report link

This is shortcut method: Using reduce method let n=[1,2,3,4,5]; let fact=(a , b)=>{ return a*b; } console.log("Factorial are", n. reduce(fact));

Reasons:
  • Low length (1):
  • No code block (0.5):
  • Unregistered user (0.5):
  • Low reputation (1):
Posted by: miyo