From 1b4e2f913afc4f5dfed823720d89dde05d23d184 Mon Sep 17 00:00:00 2001 From: =?utf8?q?J=C3=A9r=C3=B4me=20Benoit?= Date: Thu, 28 Mar 2024 17:56:12 +0100 Subject: [PATCH] refactor: cleanups MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Signed-off-by: Jérôme Benoit --- fibonacci.mjs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/fibonacci.mjs b/fibonacci.mjs index 3929b4d..a2fcd24 100644 --- a/fibonacci.mjs +++ b/fibonacci.mjs @@ -25,9 +25,9 @@ function fibonacciLoopWhile (num) { let current = 1 let previous = 0 while (--num) { - const temp = current + const tmp = current current += previous - previous = temp + previous = tmp } return current } -- 2.34.1