simple-pow

1.0.0 • Public • Published

Simple pow

Works just like pow in python!

Example usage:


// Example usage:
const result1 = power(2, 3); // This will calculate 2^3
console.log(result1); // Output: 8

const result2 = power(2, 3, 5); // This will calculate (2^3) % 5
console.log(result2); // Output: 3

``´

Readme

Keywords

none

Package Sidebar

Install

npm i simple-pow

Weekly Downloads

1

Version

1.0.0

License

ISC

Unpacked Size

733 B

Total Files

3

Last publish

Collaborators

  • zolaboo