Skip to content

christineoo/factor-function-JS

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 

Repository files navigation

factor-function-JS

This is a JavaScript function to generate all possible multiplication factor when given an input integer.

How to use the JavaScript 'factors' function:

  1. Place the index.html and the index.js into the same directory.

  2. Double-click on the index.html to open the index.html in a browser.

  3. Right-click on the webpage and select "Inspect Element".

  4. You should be able to see the output of the 'factors' function in the "Console" tab.

  5. You could use the 'factors' function by calling the function from the index.js

    a) Open index.js in a text editor.

    b) Call the 'factors' function by " factors(99) " given that 99 is the input integer.

    c) Save the index.js file and re-open/refresh the index.html webpage.

About

A javascript function to generate factors of a given integer.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors