기타 자료

[JavaScript] 코드아카데미 문제풀이 "Introduction to 'For' Loops in JS" (7/13)

Quill 2014. 8. 8. 17:53

[JavaScript] 코드아카데미 문제풀이 "Introduction to 'For' Loops in JS" (7/13)

 


Practice counting down

 



1. 문제  


원문링크


 

 

2. 풀이


1. I 값을 줄여나가는 for 문을 보여준다....


3. 해답



script.js 에 다음과 같이 추가하면 통과합니다.


// Example of infinite loop. THIS WILL CRASH YOUR

// BROWSER. Don't run the code without changing it!

for (var i = 10; i >= 0; i--) {

        console.log(i);

}




전체 목록 바로가기

 


반응형