library-boilerplate/example/index.js

13 lines
356 B
JavaScript
Raw Normal View History

2020-08-28 15:40:28 +07:00
const { sqrt, power } = require("lib-name")
2020-08-28 15:36:20 +07:00
2020-08-28 15:40:28 +07:00
console.log("Example Power : ")
2020-08-28 15:36:20 +07:00
console.log("==========================")
2020-08-28 15:40:28 +07:00
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))