Posted in Code, JavaScript Finding the Factorial using Recursion Binny V A September 29, 2008 Leave a Comment on Finding the Factorial using Recursion Finding the Factorial using Recursion in javascript. function factorial(x) { if(x <= 1) return 1; return x*factorial(x-1); } factorial(5); Author: Binny V AA philosopher programmer who specializes in backend development and stoicism.