-
-
Save sebmck/726e30aff82b3305c9e3 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
function getValues () { | |
return { | |
a: 1, | |
b: 2 | |
}; | |
} | |
let {a, b} = getValues(); | |
console.log(a, b); |
This file contains hidden or 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
function getValues () { | |
return { | |
a: 1, | |
b: 2 | |
}; | |
} | |
let a, b; | |
({a, b} = getValues()); | |
console.log(a, b); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment