A simple re-implementation of Math.pow(base, exponent)
import pow from './pow'; //import pow module
console.log("TEST ONE");
pow({ base: 2, exponent: 8 });
//output :
// > TEST ONE
// > 256
console.log("TEST TWO, WITH DEBUG MODE");
pow({ base: 2, exponent: 8, isDebug: true });
//output :
// > TEST TWO, WITH DEBUG MODE
// > 256
// > This is only triggered in debug mode 256