HTML and CSS Reference
In-Depth Information
Objective 1.6: Review
Correct answer: D
1.
Incorrect: Functions are objects in JavaScript.
A.
Incorrect: Arrays are objects in JavaScript.
B.
Incorrect: Integers are objects in JavaScript.
C.
Correct: People aren't native JavaScript objects.
D.
Correct answer: B
2.
Incorrect: This code segment produces a string.
A.
Correct: This code segment creates a dynamic object.
B.
Incorrect: This segment is incorrect because (..) was used instead of {}, along with
= instead of :.
C.
Incorrect: The new keyword isn't used when creating a dynamic object.
D.
Correct answer: D
3.
Incorrect: The inherits keyword isn't a JavaScript construct.
A.
Incorrect: The implements keyword isn't a JavaScript construct.
B.
Incorrect: The this keyword doesn't provide inheritance.
C.
Correct: Prototypes are used to create inheritance trees in JavaScript.
D.
Search WWH ::




Custom Search