can someone help me to understand what is wrong on this:
var foo = {
bar: 1,
baz: 2
};
var { bar, baz } = foo;
I got error SyntaxError: Unexpected token {
. I'm using node v5.4.1 So I'm not sure if problem is in node or in syntax. For example let
works well. Many thanks