Created
September 14, 2012 17:07
-
-
Save hbbio/3723280 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
// convenient printer | |
pp = function(x) { Debug.jlog("{x}") } | |
a = { name: "John", surname: "Doe" } | |
pp(a.name) | |
a = { a extend age: 33 } | |
pp(a.age) | |
b = {name: "Mary"} | |
f = function(x) { x.name } | |
pp(f(a)) | |
pp(f(b)) | |
// following code does NOT compile (on purpose) | |
c = { foo: "bar" } | |
pp(f(c)) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment