Searching for: Blocks in JavaScript
Commenting
Language: JavaScript

Commenting is used to write text within the code that is ignored by the compiler.

For Loop
Language: JavaScript

The for loop is used to use a control structure that executes a block of code a specified number of times.

If Statement
Language: JavaScript

The if else block controls decision making by checking true/false statements resulting in different executions of code, depending on if the result is true and if the result is false. There are three parts to the if-else block: if, else if, and else.

Ternary Operator
Language: JavaScript

The ternary operator is used to execute code based on the result of a binary condition. It takes in a binary condition as input, which makes it similar to an 'if-else' control flow block. It also, however, returns a value, behaving similar to a method.


< Previous Page   |   Next Page >