回答編集履歴
1
String 型への変換処理を追加
answer
CHANGED
@@ -4,7 +4,7 @@
|
|
4
4
|
|
5
5
|
```JavaScript
|
6
6
|
function calc (arithmeticOperator) {
|
7
|
-
switch (arithmeticOperator) {
|
7
|
+
switch (String(arithmeticOperator)) {
|
8
8
|
case '+':
|
9
9
|
return 3 + 5;
|
10
10
|
case '-':
|