Expert Developer JavaScript Question:

Download Job Interview Questions and Answers PDF

What is 'this' keyword in JavaScript?

Expert JavaScript Developer Interview Question
Expert JavaScript Developer Interview Question

Answer:

'This' keyword is used to point at the current object in the code. For instance: If the code is presently at an object created by the help of the 'new' keyword, then 'this' keyword will point to the object being created.

Download Expert JavaScript Developer Interview Questions And Answers PDF

Previous QuestionNext Question
What is a potential pitfall with using typeof bar === "object" to determine if bar is an object? How can this pitfall be avoided?Explain how to read and write a file using JavaScript?