回答編集履歴
1
String 型への変換処理を追加
test
CHANGED
@@ -10,7 +10,7 @@
|
|
10
10
|
|
11
11
|
function calc (arithmeticOperator) {
|
12
12
|
|
13
|
-
switch (arithmeticOperator) {
|
13
|
+
switch (String(arithmeticOperator)) {
|
14
14
|
|
15
15
|
case '+':
|
16
16
|
|