Created
May 24, 2012 13:43
-
-
Save jbeard4/2781615 to your computer and use it in GitHub Desktop.
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
function getObj(){ | |
//create a new object with a property and method, and return it | |
//the goal will be to call the method from java | |
return { | |
x : 1, | |
getX : function(){ | |
return this.x; | |
} | |
}; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment