Skip to content

Instantly share code, notes, and snippets.

@JuanCaicedo
Created February 19, 2016 00:45
Show Gist options
  • Save JuanCaicedo/0f7d44e0ca731930a55f to your computer and use it in GitHub Desktop.
Save JuanCaicedo/0f7d44e0ca731930a55f to your computer and use it in GitHub Desktop.
ES 2015 Node Meetup OLS
x = 1;
y = 2;

obj1 = {x:x, y:y}; // ES5
obj2 = {x, y}; //ES6

console.log(obj1);
// Object {x: 1, y: 2}

console.log(obj2);
// Object {x: 1, y: 2}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment