Language - Anonymous Block

> Code - (Programming|Computer) Language > Code - Grammar (Lexical)

1 - About

An anonymous block is a block of code without name that then cannot be called (ie reused).

The statements are between block character such as: ( and ) or { and }

Advertising

3 - Example

An anonymous block in java-script:

{ 
     y = 2; 
     x = 2 + y;
     console.log( x ); // 4
}
code/grammar/anonymous_block.txt · Last modified: 2019/03/24 13:48 by gerardnico