Javascript - Code block {}

Javascript - Code block {}

About

Language - Code Block (Grouping of Statement) in Javascript

{} will group statement

Syntax

{
// My code block
}





Discover More
How to use the Switch Statement in Javascript?

This page is the switch statement in Javascript If you omit a break from a case, and that case matches or runs, execution will continue with the next case. Always create a block after each case...
Javascript Lexical Environment Scope Chaine
Javascript - (Variable) Scope (Namespace)

Variable scope in Javascript. variable scope is delimited by the function definition, not a the block level A block has the scope of its inner function. As a function is also an object, by generalization,...
Javascript - Function Declaration

A function declaration is one of the several grammar syntax that permits to define a function. The execution of a function declaration can be done before the function declaration definition. This is...
Javascript - Special Characters

Characters that can act as: Expression operator (ie an operator) The beginning of a statement ( [ + Concat or addition - Minus / Division Regular expression Example: / as a regular...
Javascript - Statement

An expression produces a value whereas a statement will not. All statements in JavaScript must end with a semi-colon, to indicate that this is where the statement ends. The parser may add semicolon...



Share this page:
Follow us:
Task Runner