nerdexam
National_Instruments

200-500 · Question #2

What DOMElement method should be used to check for availability of a non-namespaced attribute?

The correct answer is C. hasAttribute(). See the full explanation below for the reasoning.

Question

What DOMElement method should be used to check for availability of a non-namespaced attribute?

Options

  • AgetAttributeNS()
  • BgetAttribute()
  • ChasAttribute()
  • DhasAttributeNS()

How the community answered

(27 responses)
  • A
    4% (1)
  • B
    7% (2)
  • C
    85% (23)
  • D
    4% (1)

Community Discussion

No community discussion yet for this question.

Full 200-500 Practice