/* let a = { name: 'Nikki', surname: 'Tikki', sex: 'male' } let b = { name: 'Nik', surname: 'Tikki', fathername: 'Anonovich' } let c = { name: 'Petro', surname: 'Tikki', age: 10 } */ /* debugger; */ //first attemps to find key))) /* let arrayofKeys = ['sex','fathername', 'age']; for(let key in a){ for(let i=0; i${i}${persons[i].name} ${persons[i].surname}${persons[i].fathername}${persons[i].age}${persons[i].sex}` } str += "" document.write(str) */ //destructuring /* let arr = [1,2,3,4,5, "a", "b", "c"]; let [odd1,even1,odd2,even2,odd3,...charters] = arr; let arr1 = [1,"abc"]; let [number,[s1='',s2='',s3='']] = arr1; let obj = {name: 'Ivan', surname: 'Petrov', children: [{name: 'Maria'}, {name: 'Nikolay'}]} let {name,surname,children:[name1,name2]} = obj; let arr2 = [1,2,3,4,5,6,7,10]; const {length} = arr2; const [a,b,...numarr] = arr2; */