Question 8
Consider the following JavaScript code snippet shown below.
let length = 5;
function countLen(item){ console.log(this.length);}
const data = [countLen, "Apple", length]
data[0]('Script')What will be output on browser’s console for the above JavaScript code?
6
5
4
3