You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
classUser{constructor(name,family){this.name=namethis.family=family}greeting(){console.log(`Всем привет. Я ${this.name}${this.family}.`)}}classProxyUser{constructor(user){this.user=user}getname(){console.log('Кто-то запросил имя')returnthis.user.name}setname(value){console.log(`Кто-то пытается присовить имя "${value}" пользователю.`)returnthis.user.name=value}greeting(){console.log('Кто-то пытается вызвать метод "greeting"')returnthis.user.greeting()}}constuser=newProxyUser(newUser('Алексей','Данчин'))user.greeting()