done
This commit is contained in:
10
example.js
Normal file
10
example.js
Normal 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)));
|
Reference in New Issue
Block a user