Skip to main content

JavaScript Question 82

Question 82 of 0JavaScript

What is the output?

Login Required

Please login to select answers and solve this question. You can view the question without logging in.

Code:
var status = '😎';

setTimeout(() => {
  const status = '😍';
  
  const data = {
    status: '🥑',
    getStatus() {
      return this.status;
    },
  };
  
  console.log(data.getStatus());
  console.log(data.getStatus.call(this));
}, 0);

Select the correct option: