in Education by
What does the nodeName of the nodeType Document return? (a) doctype name (b) target (c) #comment (d) #document The question was asked in an interview. My doubt stems from Node Operations in JavaScript in section Document Object Model and Event Handling in Javascript of JavaScript Select the correct answer from above options JavaScript questions and answers, JavaScript questions pdf, JavaScript question bank, JavaScript questions and answers pdf, mcq on JavaScript pdf, JavaScript questions and solutions, JavaScript mcq Test , Interview JavaScript questions, JavaScript Questions for Interview, JavaScript MCQ (Multiple Choice Questions)

1 Answer

0 votes
by
Correct option is (d) #document Best explanation: The nodeName of the nodeType Document returns #document. If the node is an element node, the nodeName property will return the tag name. If the node is an attribute node, the nodeName property will return the name of the attribute.

Related questions

0 votes
    How many nodetype - named constants are available? (a) 13 (b) 11 (c) 12 (d) 10 I have ... questions, JavaScript Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked Oct 22, 2021 in Education by JackTerrance
0 votes
    What does public int end(int group) return? (a) offset from last character of the subsequent group ( ... Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked Oct 24, 2021 in Education by JackTerrance
0 votes
    What does Class.forName( myreflection.Foo ).getInstance() return? (a) An array of Foo objects (b) ... JavaScript Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked Oct 24, 2021 in Education by JackTerrance
0 votes
0 votes
    What does the Minify return back to the Script tag? (a) File I/O (b) Minify JavaScript (c) HTTP ... , JavaScript Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked Oct 23, 2021 in Education by JackTerrance
0 votes
    What does the getInputHtml() return? (a) Input (b) Fieldtype's input HTML (c) Array (d) Value I ... , JavaScript Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked Oct 23, 2021 in Education by JackTerrance
0 votes
    What does the method Performance.now() return? (a) DOMTimeStamp (b) DOMHighResTimeStamp (c) DOM\Stamp (d ... Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked Oct 23, 2021 in Education by JackTerrance
0 votes
    What does the method defineSettings() return? (a) Array of settings name (b) Array of hash key (c ... JavaScript Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked Oct 22, 2021 in Education by JackTerrance
0 votes
    What is the procedure to add methods to HTMLElement so that they will be inherited by the objects that ... Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked Oct 23, 2021 in Education by JackTerrance
0 votes
    Which is the root element in a HTML document? (a) HTML (b) HEAD (c) SCRIPT (d) BODY This ... , JavaScript Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked Oct 23, 2021 in Education by JackTerrance
0 votes
0 votes
    The word document mainly refers to ______________ (a) Dynamic Information (b) Static Information (c) Both ... Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked Oct 23, 2021 in Education by JackTerrance
0 votes
0 votes
    Which handler is triggered when the content of the document in the window is stable and ready for ... Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked Oct 23, 2021 in Education by JackTerrance
...