Skip to content

Latest commit

 

History

History
25 lines (16 loc) · 810 Bytes

README.md

File metadata and controls

25 lines (16 loc) · 810 Bytes

Calculate Ratio and Factorial

Create a file index.js in the ratioFactorial directory.

Write a JS function in index.js that accepts 3 numbers as arguments and return the ratio of the first two numbers and factorial of the third number in an object with keys as ratio and factorial.

Export the function using default export syntax.

Folder Structure

utilities
    - factorial
        - index.js         // contains a function that returns the factorial of the given number

    - ratio
        - index.js         // contains a function that returns the ratio of 2 given numbers

    - ratioFactorial
        - index.js         // create the file and write your code here

Use the functions provided in the ratio and factorial directories.

Use Common JS module syntax.