From cec45056144eb2a36c825e76bb163195ca69afb2 Mon Sep 17 00:00:00 2001 From: Joshua Joseph Date: Thu, 19 Oct 2023 15:29:30 -0400 Subject: [PATCH] :recycle: refactor the square function to be n ** 2 --- square.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/square.js b/square.js index 6fca54d..7b6db49 100644 --- a/square.js +++ b/square.js @@ -1,3 +1,3 @@ function square(n) { - return n * n; + return n ** 2; }