{
let a = 1,
b = 2;
let es5 = {
a: a,
b: b
}
let es6 = {
a,
b
}
let es5_method = {
hello: function() {
}
}
let es6_method = {
hello() {
}
}
} {
let a = 'key_val';
let b = {
a: 'm'
}
console.log(b);
let es6_b = [];
es6_b.push(
{ [a] : 'm'}
)
console.log(es6_b);
}
{
console.log(Object.is([],[]),[]===[]);
}
{
let m = {
a:'a',
c:'c'
}
Object.assign(m,{b:'b'})
console.log(m);
}
{
let m = {
a:'a1',
c:'c1'
}
for(let [key,value] of Object.entries(m)){
console.log(key);
}
}
{
let {a,b,...c} = {
a:'test_a',
b:'test_b',
c:'test_c',
d:'test_d'
}
console.log(c);
}
console