let [head,...tail]=[1,2,3,4];
let [a,b,...c]=['x'];
let [d,e,f]=new Set(['x','y','z'])
function*fibs(){
let a=0;
let b=1;
while(true){
yield a;
[a,b]=[b,a+b]
}
}
let [first, second, third, fourth, fifth, sixth] =fibs();
console.log(sixth);
function*ge(){
yield 1;
yield 2;
yield 3;
}
for(let g of ge()){
}
function h(){
console.log('aaa');
}
h()
let [i=h()]=[1]
console.log(i)
let {j:k=3}={};
let map=new Map();
map.set('first', 'hello');
map.set('second', 'world');
for(let [key,value] of map){
console.log(key + ' is '+value)
}
for(let [key] of map){
console.log(key)
}
for(let [,value] of map){
console.log(value)
}
console