Which of the following commands is used to add a method to a prototype.

A. objName.prototype.function = method;
B. objName.prototype.method = function;
C. objClass.prototype.method = function;
D. objInstance.prototype.function = method;

Answer: B

Computer Science & Information Technology

You might also like to view...

Which of the following is the best tool for analyzing employee performance over a period of time?

A) Data table B) Outline C) PivotTable D) Subtotals

Computer Science & Information Technology

________ is a tool used to understand the logic of conjunction functions where words are entered in the function structure

A) Simulated code B) Pseudocode C) Statement code D) Text code

Computer Science & Information Technology