en.javascript.info/1-js/04-object-basics/04-object-methods/2-check-syntax/task.md
2017-06-24 16:52:56 +04:30

202 B

importance: 2


Syntax check

What is the result of this code?

let user = {
  name: "John",
  go: function() { alert(this.name) }
}

(user.go)()

P.S. There's a pitfall :)