A.  document.getElement (“documentId”).innerHTML = ”Hi Welcome”;

B.  document.getElementById(“documentId”).innerHTML = ”Hi Welcome”;

C.  document.getId(“documentId”).innerHTML = ”Hi Welcome”;

D.  document.elementById(“documentId”).innerHTML = ”Hi Welcome”;

1
Correct Answer :
document.getElementById(“documentId”).innerHTML = ”Hi Welcome”;
Explanation :
No Explanation available for this question

Interview Questions

Java Script
Node JS
PHP