JavaScript has number of statements that control flow of the program. There are:
- conditionals (if-else, switch) that perform different actions depending on the value of an expression,
- loops (while, do-while, for, for-in, for-of), that execute other statements repetitively,
- jumps (break, continue, labeled statement) that cause a jump to another part of the program.
Reply