MCQs>IT & Programming>JavaScript>Consider the following code snippet: var a = document.getElementById('id1'); a.onclick = function1; a.onclick = function2; Which function will be executed if a user clicks on id1 element?
JavaScript MCQs
Consider the following code snippet:
var a = document.getElementById("id1");
a.onclick = function1;
a.onclick = function2;
Which function will be executed if a user clicks on id1 element?
Answer
Correct Answer: function2
Explanation:
Note: This Question is unanswered, help us to find answer for this one