Bounteous x Accolite interview question

Write a recursion function to get factorial of a number in JS?