File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed
1-js/05-data-types/04-array Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change 1
- 呼び出し ` arr[2]() ` は、構文的には良く、古い ` obj[method]() ` であり、` obj ` の役割は ` arr ` で、 ` method ` は ` 2 ` です 。
1
+ 呼び出し ` arr[2]() ` は、構文的には古き良き ` obj[method]() ` であり、` arr ` が ` obj ` の役割を、 ` 2 ` が ` method ` の役割を持っています 。
2
2
3
- 従って、オブジェクトメソッドとして関数 ` arr[2] ` を呼び出します 。当然のことながら、オブジェクト ` arr ` を参照している ` this ` を受け取り、配列を出力します 。:
3
+ 従って、` arr[2] ` の関数をオブジェクトメソッドとして呼び出します(訳注: ` arr[2] ` には ` function() { alert( this ); } ` が ` push ` されています) 。当然のことながら、この関数はオブジェクト ` arr ` を参照している ` this ` を受け取るため、配列 ` arr ` を出力します 。:
4
4
5
5
``` js run
6
6
let arr = [" a" , " b" ];
Original file line number Diff line number Diff line change @@ -127,7 +127,7 @@ JavaScriptの配列キュー、スタックどちらとしても動作します
127
127
128
128
コンピュータサイエンスでは、それを許可するデータ構造を[ deque] ( https://en.wikipedia.org/wiki/Double-ended_queue ) と呼びます。
129
129
130
- ** 配列の末尾で動作するメソッド:******
130
+ ** 配列の末尾で動作するメソッド:**
131
131
132
132
` pop `
133
133
: 配列の最後の要素を抽出して返します。:
You can’t perform that action at this time.
0 commit comments