getName method
Retrieve the property name.
Syntax
let value = obj.getName();
obj.name = value;
value = obj.name;
Note that this feature is available as both a method and a property.
Parameters
This method does not take any parameters.
Return value
- Type: string