回答編集履歴

1

String 型への変換処理を追加

2016/04/05 14:44

投稿

think49
think49

スコア18166

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