Last active
August 29, 2015 14:17
-
-
Save vgaltes/ca54de9442359cb77f15 to your computer and use it in GitHub Desktop.
This example 1
This file contains hidden or 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
<script> | |
var hello = 'Hello from the outer space'; | |
var aObject = { | |
hello : 'Hello from the earth' | |
} | |
var sayHello = function(){ | |
console.log(this.hello); | |
} | |
aObject.sayHello = sayHello; | |
aObject.sayHello(); | |
sayHello(); | |
</script> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment