HTML: Markup language
CSS: Styling language
JavaScript: Scripting language
Web APIs: Programming interfaces
All web technology
Learn web development
Discover our tools
Get to know MDN better
This page was translated from English by the community. Learn more and join the MDN Web Docs community.
View in English Always switch to English
JavaScript에서, 블록문은 중괄호("{}")로 묶인 statements문의 집합입니다. 예를 들어, if (condition) 블록 뒤에 블록으로 감싼 실행 코드들을 배치하여, 인터프리터가 조건이 참이면, 블록 안에서 코드를 실행해야 함을 나타낼 수 있습니다. 조건이 거짓이면 전체 블록을 건너뜁니다.
if (condition)