From 67de94f982659c8a214bdcf6f10d71d5569e8d48 Mon Sep 17 00:00:00 2001 From: Hozefa Date: Thu, 30 Jul 2020 03:20:43 +0300 Subject: [PATCH] number - calculate the exponentiation value --- collections/number/calculate-the-exponentiation-value.md | 6 ++++++ 1 file changed, 6 insertions(+) create mode 100644 collections/number/calculate-the-exponentiation-value.md diff --git a/collections/number/calculate-the-exponentiation-value.md b/collections/number/calculate-the-exponentiation-value.md new file mode 100644 index 00000000..877d3338 --- /dev/null +++ b/collections/number/calculate-the-exponentiation-value.md @@ -0,0 +1,6 @@ +~~~ javascript +const exponentiation = (base, exponent) => base ** exponent; + +// Example +exponentiation(3, 2); // 9 +~~~ \ No newline at end of file