Skip to content

Instantly share code, notes, and snippets.

@nonseodion
Last active March 13, 2020 12:48
Show Gist options
  • Save nonseodion/78984cb5afedf1813bd0681e20ffbd6d to your computer and use it in GitHub Desktop.
Save nonseodion/78984cb5afedf1813bd0681e20ffbd6d to your computer and use it in GitHub Desktop.
let ifebhor = {
carol: "rude",
damian: "caring",
mac: "handsome",
flora: "cute",
aave: "class bully"
}
//mac's property can now be referenced using playboy.
let {mac : playboy} = ifebhor;
console.log("Girls flock around Mac because he's " + playboy + ".");
//Girls flock around Mac because he's handsome.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment