dhtml said:
A lot of the questions aren't good flashcard questions. A lot of the
answers are wrong. Peter already pointed out in an earlier thread.
Here's just an example of a few wrong answers:
The answers are not all wrong, but some questions are and some questions are
worded imprecisely.
Q: What is ECMAScript in JavaScript
A: standard extension for JavaScript that extends methods for processing XML
The answer is correct for the question "What is E4X in JavaScript 1.6 and
later?". ISTM the person devising the question has confused ECMA-262
(ECMAScript) and ECMA-357 (ECMAScript for XML).
Q: Form element property to grab the value of the element - like text in
input box
A: value
This is correct, but worded imprecisely.
Q: How do you avoid using the brittle position dependent arrays to get at
form elements:
They are _not_ arrays.
document.forms[0].elements[
This should be a syntactically valid expression, say
document.forms[0].elements[0]
A: use the name attribute for the tags, so if you had a form signup with
a field first_name
document.signup.first_name
This is correct, but worded imprecisely; attributes are on elements, not
tags, although they are set in an element's start tag. And the suggestion
should be standards-compliant --
document.forms[0].elements["first_name"]
-- to correspond with the question.
Q: Form element property to grab the form that the element belongs to
A: form
Correct, although the question is worded imprecisely. `form' is the
property of form *control objects* to do so. Those objects represent form
controls (certain interactive child elements of the `form' element) in the DOM.
Q: How do you grab an array of all the input elements on a form
A: elements[] array
`elements' is not an array but a NodeList, and the `[]' is misleading;
otherwise this is correct.
Q: Event property that gives the current node on which the event is
responding - which may be different from the target of the event
A: currentTarget
Somewhat correct.
All wrong. I'd say about half of the information there is wrong.
You may want to reevaluate your assessment.
PointedEars