comma
2022年5月1日小于 1 分钟
comma
Question
What does the code snippet to the right output by console.log
?
Snippet
var obj = {
a: "BFE",
b: "dev",
func: (function foo(){ return this.a; }, function bar(){ return this.b; })
}
console.log(obj.func())