回答編集履歴

1

文法の修正

2019/10/06 01:02

投稿

syachiku
syachiku

スコア117

test CHANGED
@@ -22,9 +22,9 @@
22
22
 
23
23
  const exTax = document.getElementById('exTax');
24
24
 
25
- let total = Number(exTax.textContent.replace('円', ''));
25
+ const total = Number(exTax.textContent.replace('円', ''));
26
26
 
27
- let totalExTax = total + subTotal;
27
+ const totalExTax = total + subTotal;
28
28
 
29
29
  exTax.textContent = `${totalExTax}円`;
30
30