aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBraxton Hall2022-10-23 21:41:20 +0000
committerGitHub2022-10-23 21:41:20 +0000
commitc681e01dcf47cf294b12bcff496e076c5f5b0606 (patch)
tree17b1a41286a2c62e134be29cbf77633363a2ae62
parenta0fab0d8ac452063375d4bba76466803c28258f0 (diff)
parent0cf22c94832a4ae44536b25ec5d5c0e2132b1069 (diff)
Merge pull request #3 from Metroxe/patch-2
fixed duplicated calculation
-rw-r--r--entries/Metroxe/index.html2
1 files changed, 1 insertions, 1 deletions
diff --git a/entries/Metroxe/index.html b/entries/Metroxe/index.html
index 98ac5b9..cb85a24 100644
--- a/entries/Metroxe/index.html
+++ b/entries/Metroxe/index.html
@@ -23,7 +23,7 @@
const n1 = s.substring(i1 + 1);
const n2 = i2 === -1 ? s.substring(0, i1 - 1) : s.substring(i2 + 1, i1);
const v = Number(n1) + Number(n2);
- const output = `${s},${Number(n1) + Number(n2)}`;
+ const output = `${s},${v}`;
document.getElementById("sequence").innerText = output;
const next = document.getElementById("next");