1.0.3 • Published 6 years ago

random-math-question v1.0.3

Weekly downloads
6
License
ISC
Repository
github
Last release
6 years ago

:cd: Installation

Simpley run this with-in your console and you're good to go!

npm install random-math-question --save

:straight_ruler: Usage

var randomMathQuestion = require('random-math-question');

var mathQuestion1 = randomMathQuestion.get();

var mathQuestion2 = randomMathQuestion.get(randomMathQuestion.get({
numberRange: '1-5000',
amountOfNumber: '5-10',
operations: ['/', '*', '+', '-'],
nagative: {
    containsNagatives: true,
    negativeChance: '10%'
},
exponent: {
    containsExponents: true,
    exponentChance: '10%',
    exponentRange: '1-10'
},
}));


console.log("Question 1: " + mathQuestion1.question);
console.log("Answer: " + mathQuestion1.answer);

console.log("Question 2: " + mathQuestion2.question);
console.log("Answer: " + mathQuestion2.answer);

Author

Jack Clarke ---| Jack Clarke

1.0.3

6 years ago

1.0.2

6 years ago

1.0.1

6 years ago

1.0.0

6 years ago