э
строка = число — что за бредятина?
понятно, что код работать не будет
Size: a a a
э
IS
КК
IS
IS
S
АК
АК
XM
XM
XM
ЕР
IS
XM
IS
XM
let obj1 = {
name: 'vasya'
}
let obj2 = {
name: 'petya',
age: 30
}
let mrg = Object.assign({}, obj1, obj2)
let mrg2 = Object.assign(obj1, obj2)
console.log(mrg) // name: 'petya', age: 30
console.log(mrg === mrg2) // false
console.log(mrg2 === obj1) // true
XM
function time(sec){
setTimeout(()=>console.log('Отработано', sec),sec * 1000)
}
async function steam(){
console.log('=== START ===');
await time(1);
await time(1);
console.log('=== FINISH ===');
}
steam();
IS
XM
IS