13 lines
166 B
JavaScript
13 lines
166 B
JavaScript
|
function Foo( name )
|
||
|
{
|
||
|
this.getName = function()
|
||
|
{
|
||
|
return name;
|
||
|
};
|
||
|
|
||
|
this.setName = function( newname )
|
||
|
{
|
||
|
name = newname;
|
||
|
};
|
||
|
}
|