Testing export to Gist from JSBin var n = 3; var r = 3; var nCr = 0; nCr = n*n*n/r; document.write(nCr); // is there a factorial function? does it need a library? // do I need to make a factorial function?