回答編集履歴
1
indexOf
test
CHANGED
@@ -1,14 +1,4 @@
|
|
1
|
-
|
1
|
+
indexOf, lastIndexOf の返り値が一致しない要素値を出力
|
2
|
-
|
3
|
-
2. `String.prototype.replace` の第二引数に関数を指定
|
4
|
-
|
5
|
-
3. 変換テーブルを元に置換
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
https://developer.mozilla.org/ja/docs/Web/JavaScript/Reference/Global_Objects/String/replace
|
10
|
-
|
11
|
-
https://developer.mozilla.org/ja/docs/Web/JavaScript/Reference/Global_Objects/Map
|
12
2
|
|
13
3
|
|
14
4
|
|