Learning JavaScript Data Structures and Algorithms
上QQ阅读APP看书,第一时间看更新

Control structures

JavaScript has a similar set of control structures as the C and Java languages. Conditional statements are supported by if...else and switch. Loops are supported by the while, do...while, and for constructs.