do...while 다음 예에서는 다음과 같은 작업을 수행합니다.do...while루프를 최소 한번 이상 반복하고 다음까지 반복합니다.i더 이상 5가 아니다.HTML콘텐츠자바 스크립트 내용var result = ''; var i = 0; do { i += 1; result += i + ' '; } while (i > 0 && i < 5); // Despite i == 0 this will still loop as it starts off without the test document.getElementById('example').innerHTML = result;결과 1 2 3 4 5 출처 : https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Statements/do...while...
#
do
#
javascript
#
while
#
반복문
원문 링크 : [javascript] do...while 문(반복문)