in Education by
How many nodetype – named constants are available? (a) 13 (b) 11 (c) 12 (d) 10 I have been asked this question in an interview. Query is 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
The correct answer is (c) 12 The best I can explain: DOM nodes can be of various types, such as element nodes and text nodes, and each node has a nodeType property giving its type. There are totally 12 nodetype – named constants available.

Related questions

0 votes
    What does the nodeName of the nodeType Document return? (a) doctype name (b) target (c) #comment ... JavaScript Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked Oct 23, 2021 in Education by JackTerrance
0 votes
    How many WebSocket events are available? (a) 2 (b) 3 (c) 4 (d) 5 The question was asked ... , JavaScript Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked Oct 23, 2021 in Education by JackTerrance
0 votes
    How many properties are available in a memory object? (a) 1 (b) 2 (c) 3 (d) 4 The ... questions, JavaScript Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked Oct 23, 2021 in Education by JackTerrance
0 votes
    How many default number methods are available in JavaScript? (a) 5 (b) 6 (c) 7 (d) 8 This ... , JavaScript Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked Oct 22, 2021 in Education by JackTerrance
0 votes
    How many Node object methods are available? (a) 18 (b) 19 (c) 20 (d) 21 I had been ... questions, JavaScript Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked Oct 22, 2021 in Education by JackTerrance
0 votes
0 votes
    Which of these are integer constants of ComponentEvent class? (a) COMPONENT_HIDDEN (b) COMPONENT_MOVED (c) ... Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked Oct 24, 2021 in Education by JackTerrance
0 votes
    Which of these are integer constants of TextEvent class? (a) TEXT_CHANGED (b) TEXT_FORMAT_CHANGED (c) ... Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked Oct 24, 2021 in Education by JackTerrance
0 votes
    Which of these are constants defined in WindowEvent class? (a) WINDOW_ACTIVATED (b) WINDOW_CLOSED (c) ... Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked Oct 24, 2021 in Education by JackTerrance
0 votes
    Which of the following constants hold the value 2? (a) TYPE_NAVIGATE (b) TYPE_RELOAD (c) TYPE_BACK_FORWARD ... Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked Oct 23, 2021 in Education by JackTerrance
0 votes
    Which of the following constants has the value 255? (a) TYPE_NAVIGATE (b) TYPE_RELOAD (c) TYPE_BACK_FORWARD ... Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked Oct 22, 2021 in Education by JackTerrance
0 votes
    How can we make methods available on all objects? (a) Object.add(methods) (b) Object.methods(add) ... JavaScript Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked Oct 23, 2021 in Education by JackTerrance
0 votes
    How many bits are used for generating random numbers? (a) 32 (b) 64 (c) 48 (d) 8 The ... questions, JavaScript Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked Oct 24, 2021 in Education by JackTerrance
0 votes
0 votes
    How many properties are there in window.performance object? (a) 1 (b) 4 (c) 2 (d) 3 The ... , JavaScript Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked Oct 23, 2021 in Education by JackTerrance
...