en.javascript.info/1-js/4-object-basics/04-object-methods/2-check-syntax/task.md
Ilya Kantor 3defacc09d up
2016-11-12 19:38:58 +03:00

201 B

importance: 2


Syntax check

What is the resule of this code?

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

(user.go)()

P.S. There's a pitfall :)