Drag and drop the code blocks to build a factorial function
Drop code block here
Drop code block here
Drop code block here
Drop code block here
Available Code Blocks:
if (n <= 1) return 1;
function factorial(n) {
}
return n * factorial(n - 1);
Press space bar to start a drag.
When dragging you can use the arrow keys to move the item around and escape to cancel.
Some screen readers may require you to be in focus mode or to use your pass through key