diff options
author | Braxton Hall | 2022-10-23 21:41:20 +0000 |
---|---|---|
committer | GitHub | 2022-10-23 21:41:20 +0000 |
commit | c681e01dcf47cf294b12bcff496e076c5f5b0606 (patch) | |
tree | 17b1a41286a2c62e134be29cbf77633363a2ae62 /entries/Metroxe | |
parent | a0fab0d8ac452063375d4bba76466803c28258f0 (diff) | |
parent | 0cf22c94832a4ae44536b25ec5d5c0e2132b1069 (diff) |
Merge pull request #3 from Metroxe/patch-2
fixed duplicated calculation
Diffstat (limited to 'entries/Metroxe')
-rw-r--r-- | entries/Metroxe/index.html | 2 |
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"); |