This commit is contained in:
2018-06-04 21:02:05 +02:00
parent 33e378fcd1
commit fd0ea53218
4 changed files with 19 additions and 7 deletions

10
example.js Normal file
View File

@@ -0,0 +1,10 @@
const nothing = require('./nothing.js');
const helper = require('./nothing-helper.js');
const fizzbuzz = (x) => {
let a = [];
for (let i = 1; i <= x; i++) {
a.push(i % 15 ? i % 5 ? i % 3 ? i : "Fizz" : "Buzz" : "FizzBuzz");
}
return a;
};
console.log(helper.check_represent(nothing.FIZZBUZZ(helper.representation_of(100)), fizzbuzz(100)));