/sqrt-root-js

Simple code in JavaScript to calculate square root of a number using Heron's algorithm

Primary LanguageJavaScript

sqrt-root-js

Simple code in JavaScript to calculate square root of a number using Heron's algorithm

Calculate Square Root Using Hero's Algorithm

Just to get you up and running using this code, here's step by step how to do it:

1. Clone the repo into your device.

git clone https://github.com/pulo0/sqrt-root-js.git

2. Install Node.js

3. To run it, go to a terminal in your IDE of choice and type.

node heronsqrtroot.js

And you're set, hope it helped you in some way :)