If4 제어문, 반복문 ★★ p.572~579, 4-27 1) 제어문의 개념 - 컴퓨터 프로그램은 명령어가 서술된 순서에 따라 무조건 위에서 아래로 실행되는데, 조건을 지정해서 진행 순서를 변경할 수 있다. 이렇게 프로그램의 순서를 변경할 때 사용하는 명령문을 제어문이라고 함 2) 단순 if문 ▶ 형식 1: 조건이 참일 때만 실행 1. 조건이 참일 때 실행할 문장이 하나인 경우 if(조건) 실행할 문장; 2. 조건이 참일 때 실행할 문장이 두 문장 이상인 경우 if(조건) { 실행할 문장1; // 실행할 문장이 두 문장 이상이면 { } 중괄호로 감싸기 실행할 문장2; … } ▶ 형식 2: 조건이 참일 때와 거짓일 때 실행할 문장이 다름 if(조건) 실행할 문장1; // 조건이 참일 경우 실행 else 실행할 문장2; // 조건이 거.. 2020. 10. 4. [JavaScript] #2.6 DOM - If else - Function practice (#코딩공부) https://youtu.be/UwnBvuFyiBU https://wook-2124.tistory.com/77 [JavaScript] #2.5 If, else, and, or (#코딩공부) https://youtu.be/NUh9afZ5xUs https://wook-2124.tistory.com/75 [JavaScript] #2.4 Events and event handlers (#코딩공부) https://youtu.be/LnuLDGO5848 https://wook-2124.tistory.com/73 [Jav.. wook-2124.tistory.com https://repl.it/ Online IDE, Editor, and Compiler - Fast, Powerful, Free Repl.it is a s.. 2020. 3. 20. [JavaScript] #2.5 If, else, and, or (#코딩공부) https://youtu.be/NUh9afZ5xUs https://wook-2124.tistory.com/75 [JavaScript] #2.4 Events and event handlers (#코딩공부) https://youtu.be/LnuLDGO5848 https://wook-2124.tistory.com/73 [JavaScript] #2.3 Modifying the DOM with JS (#코딩공부) https://youtu.be/JscDdICRvgo https://wook-2124.tistory.com/72 [Jav.. wook-2124.tistory.com https://repl.it/ Online IDE, Editor, and Compiler - Fast, Powerful, Free Repl.i.. 2020. 3. 20. [Python] #1.10 Conditionals part One (#코딩공부) https://youtu.be/GEVMZa53C1Q https://wook-2124.tistory.com/18 [Python] #1.9 Code Challenge! (#코딩공부) https://youtu.be/I_e2Wn3LtBw https://wook-2124.tistory.com/17 [Python] #1.8 Keyworded Arguments (#코딩공부) https://youtu.be/Z27sK7sNoSk #1.7 💖은 니꼬쌤의 말씀! I just wanted to say: Thank y.. wook-2124.tistory.com https://repl.it/ The world's leading online coding platform Powerful and simple online compile.. 2020. 2. 8. 이전 1 다음