# fsVarsRegisterNamedVar {{< callout context="note" title="NOTE" icon="outline/bulb" >}} Deprecated. Use `fsVarsRegisterLVar` instead. {{< /callout >}} The **fsVarsRegisterNamedVar** function can be used to create a new named variable.   ##### Syntax ``` wasm FsNamedVarId fsVarsRegisterNamedVar( const char* name ); ```   ##### Parameters {{< table-wrapper >}} | Parameters | Description | |------------|-------------------------------| | `name` | The name of the new variable. | {{< /table-wrapper >}}   ##### Return Values The function returns the right Id associated to the given name. If the given name has already been registered, the function will return the Id of the NamedVar. If an error occurred, the function will return -1.   ##### Example ``` wasm FsNamedVarId namedVarId = fsVarsRegisterNamedVar("TOTO"); ```