Created
May 25, 2012 16:59
-
-
Save michaelBenin/2789205 to your computer and use it in GitHub Desktop.
nyman
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!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