Skip to content

seetharampullela/factorial-and-ratio

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 

Repository files navigation

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.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published