library-boilerplate/example/index.js
2020-08-28 15:40:28 +07:00

13 lines
356 B
JavaScript

const { sqrt, power } = require("lib-name")
console.log("Example Power : ")
console.log("==========================")
console.log("Result of 2 = ", power(2))
console.log("Result of 4 = ", power(4))
console.log("Example Sqrt : ")
console.log("==========================")
console.log("Result of 4 = ", sqrt(4))
console.log("Result of 100 = ", sqrt(100))