summary refs log tree commit diff stats
path: root/javascript/square-root/square-root.js
diff options
context:
space:
mode:
Diffstat (limited to 'javascript/square-root/square-root.js')
-rw-r--r--javascript/square-root/square-root.js3
1 files changed, 3 insertions, 0 deletions
diff --git a/javascript/square-root/square-root.js b/javascript/square-root/square-root.js
new file mode 100644
index 0000000..50c3634
--- /dev/null
+++ b/javascript/square-root/square-root.js
@@ -0,0 +1,3 @@
+export const squareRoot = (num) => {
+    return Math.sqrt(num);
+};