en.javascript.info/1-js/04-object-basics/04-object-methods/2-check-syntax/task.md
Ilya Kantor 9ad9063d00 up
2016-11-28 21:35:42 +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 :)