const weakMap = new WeakMap();
const obj1 = {};
const obj2 = { key: 'value' };
weakMap.set(obj1, obj2);
const result = weakMap.get(obj1).key.split('').reverse().join('');
console.log(result);
Ответ:
Please open Telegram to view this post
VIEW IN TELEGRAM
for (var i =0; i < 10; i++){
setTimeout(function (){
console.log(i);
}, 0);
}
Ответ:
Please open Telegram to view this post
VIEW IN TELEGRAM