Home > blockly > Names > (constructor)
Names.(constructor)
Constructs a new instance of the Names class
Signature:
constructor(reservedWordsList: string, opt_variablePrefix?: string);
Parameters
| Parameter | Type | Description |
|---|---|---|
| reservedWordsList | string | A comma-separated string of words that are illegal for use as names in a language (e.g. 'new,if,this,...'). |
| opt_variablePrefix | string | (Optional) Some languages need a '$' or a namespace before all variable names (but not procedure names). |