Created
August 23, 2011 06:24
-
-
Save spikebrehm/1164473 to your computer and use it in GitHub Desktop.
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
var name = 'Bob'; | |
var Person = function(name){ | |
this.name = name; | |
console.log(name); | |
} | |
var me = Person('John'); | |
console.log(name); | |
var you = new Person('Robert'); | |
console.log(name); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment