dc-duper-webhooks
Version:
This library makes it easier for people who want to use Discord Webhook API in their project!
30 lines (29 loc) • 675 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.Test = void 0;
class Test {
/**
* @param a Any postive number
* @param b Any postive number
*/
constructor(a, b) {
this.a = a;
this.b = b;
}
/**
* @param onlyOdd true if you want to print just odd numbers.
* @return A sequence of numbers
*/
printAToB(onlyOdd) {
for (let i = this.a; i < this.b; i++) {
if (onlyOdd) {
if (i % 2 !== 0)
console.log(i);
}
else {
console.log(i);
}
}
}
}
exports.Test = Test;