MCQs > IT & Programming > JavaScript > In the HTML code a div is present
. What will the following code alert ? var div = document.getElementById('test'); div.addEventListener('click',function(){ alert('The value of : '+ this.id); }.bind(this),false);;

JavaScript MCQs

In the HTML code a div is present
. What will the following code alert ? var div = document.getElementById("test"); div.addEventListener("click",function(){ alert("The value of : "+ this.id); }.bind(this),false);;

Answer

Correct Answer: The value is : undefined

Explanation:

Note: This Question is unanswered, help us to find answer for this one

JavaScript Skill Assessment

Overall Skill Level-Poor

Your Skill Level: Poor

Retake Quizzes to improve it

search

JavaScript Skill Assessment

Overall Skill Level-Poor

Your Skill Level: Poor

Retake Quizzes to improve it