Question 11 of 5221%
11
Consider the below code snippets, What will be the output?
'use strict';
var obj = {
i: 10,
b: () => console.log(this.i),
c: function() {
console.log(this.i);
}
}
obj.b();
obj.c();
11/52
'use strict';
var obj = {
i: 10,
b: () => console.log(this.i),
c: function() {
console.log(this.i);
}
}
obj.b();
obj.c();