Last active
May 17, 2017 04:12
-
-
Save TheJosh/4640664d129f4208a5409ab0970d52ab 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 myobj = { | |
some_var: "some string", | |
another_var: 42, | |
func_var: function(x) { | |
console.log(x); | |
} | |
} | |
// call the function like this: | |
myobj.func_var('hello'); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment