Skip to content

Instantly share code, notes, and snippets.

@michaelBenin
Created May 25, 2012 16:59
Show Gist options
  • Save michaelBenin/2789205 to your computer and use it in GitHub Desktop.
Save michaelBenin/2789205 to your computer and use it in GitHub Desktop.
nyman
<!DOCTYPE HTML>
<html>
<head>
<meta charset="UTF-8">
<title>Untitled Document</title>
<script>
var thomas = new Person('Thomas');
var amy = new Person('Amy');
function Person(firstName){
this.name = firstName;
this.getName = function()
{
var name ="Amy";
return name;
}
}
delete Person.getName;
</script>
</head>
<body>
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment