Case-Based Critical Thinking Questions
?
Case 13-3
?
Thomas wants to create a custom object using thenewoperator. He applies the following commands:
var objName = new Object();
object.property = value;
object.method = function() {
commands
};
The newObject()statement is equivalent to a(n) _____.
A. empty object literal
B. prototype chain
C. for…inloop
D. base object
Answer: A
Computer Science & Information Technology
You might also like to view...
Critical Thinking QuestionCase 1You want to do some double-checking of the values that have been generated by the procedures you have used, to make sure that you have chosen the right procedures for the job.Which value results from the method Math.Floor(-4.2)? a. 5.0c. -5.0b. 4.0d. -4.0
What will be an ideal response?
Computer Science & Information Technology
____ was created to fill the need for a teaching tool to encourage structured programming.
A. COBOL B. Pascal C. BASIC D. FORTRAN
Computer Science & Information Technology