Skip to content

Commit

Permalink
Update 2018-04-23-06_loop.md
Browse files Browse the repository at this point in the history
  • Loading branch information
super-fishz authored Apr 7, 2019
1 parent b092cb4 commit ddc2160
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions study/reboot_js/2018-04-23-06_loop.md
Original file line number Diff line number Diff line change
Expand Up @@ -34,3 +34,13 @@ break
continue
{% endhighlight %}
continue 이후의 블록은 수행하지 않음.


#### for loop과 비슷한 친구들
* [for ... in](https://developer.mozilla.org/ko/docs/Web/JavaScript/Reference/Statements/for...in)
* 객체의 모든 non-Symbol, enumerable properties 를 반복
* object 내의 properties 를 순회할 수 있다
* [for ... of](https://developer.mozilla.org/ko/docs/Web/JavaScript/Reference/Statements/for...of)
* 반복 가능한 객체(Array, Map, Set, String, TypedArray, arguments 객체 등을 포함)에 대해서 반복
* [Array.prototype.forEach()](https://developer.mozilla.org/ko/docs/Web/JavaScript/Reference/Global_Objects/Array/forEach)
* forEach() 메서드는 주어진 함수를 배열 요소 각각에 대해 실행합니다. 어레이에 대해서만 쓸 수 있음

0 comments on commit ddc2160

Please sign in to comment.