bsf-components-test
Version:
Library of components for the BSF project
30 lines (29 loc) • 1.03 kB
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.subtract = exports.add = exports.log = void 0;
var log = /** @class */ (function () {
function log() {
}
log.success = function (message) {
console.log("%c ".concat(message), 'color: green');
};
log.error = function (message) {
console.log("%c ".concat(message), 'color: red');
};
log.warning = function (message) {
console.log("%c ".concat(message), 'color: orange');
};
return log;
}());
exports.log = log;
// Create and export new function which perform addition of two numbers and return the result.
function add(a, b) {
// return a + b;
return "addition ".concat(a, " + ").concat(b, " = ").concat(a + b);
}
exports.add = add;
// Create and export new function which perform subtraction of two numbers and return the result.
function subtract(a, b) {
return "Result of the t Somethinkjiu ".concat(a, " - ").concat(b, " = ").concat(a - b);
}
exports.subtract = subtract;