statements are JavaScript sentences or commands.
A JavaScript program is simply a sequence of statements, terminated and separated from one another with semicolons, to execute. once you are familiar with the statements of JavaScript, you can begin writing JavaScript programs.
By default, the JavaScript interpreter executes these statements one after another in the order they are written. Another way is to alter this default order of execution, and JavaScript has a number of Branching statements enable you to make choices or control structures that allows you to control the flow of your program in three ways :
• Conditionals are The decision-making constructs ( if, if/else, if/elseif, switch ) statements that make the JavaScript interpreter execute or skip other statements depending on the value of an expression.
• The looping constructs ( while, do...while , for ) are statements that execute other statements repetitively until some condition is met.
• Jumps are statements like break, return, and throw that cause the interpreter to jump to another part of the program.
A JavaScript program is simply a sequence of statements, terminated and separated from one another with semicolons, to execute. once you are familiar with the statements of JavaScript, you can begin writing JavaScript programs.
By default, the JavaScript interpreter executes these statements one after another in the order they are written. Another way is to alter this default order of execution, and JavaScript has a number of Branching statements enable you to make choices or control structures that allows you to control the flow of your program in three ways :
• Conditionals are The decision-making constructs ( if, if/else, if/elseif, switch ) statements that make the JavaScript interpreter execute or skip other statements depending on the value of an expression.
• The looping constructs ( while, do...while , for ) are statements that execute other statements repetitively until some condition is met.
• Jumps are statements like break, return, and throw that cause the interpreter to jump to another part of the program.
No comments:
Post a Comment