Last active
August 29, 2015 14:14
-
-
Save nicokosi/64e78277960ebf2f16be 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
// array | |
var myArray = [1, 2, 3]; | |
// set | |
var mySet = { "foo": true, "bar": true, "baz": true }; | |
set.foo // true | |
set.notExists // false | |
var object = { id: 126878, name: "ZALTRAP 25 mg/ml sol diluer p perf", sid: "vidal://product/126878", title: "ZALTRAP 25 mg/ml sol diluer p perf" }; | |
// closure | |
function adder(i) { | |
var base = 10; | |
return i + base; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment