Solved

Your Project, Which Uses Prototype

Question 3

Multiple Choice

Your project, which uses prototype.js, contains the JavaScript class Photoviewer (see EXAMPLE, below) . Which one of the following code samples will create a class called AdvancedPhotoViewer that extends Photoviewe r? EXAMPLE: var PhotoViewer = Class.create() ;


A) var AdvancedPhotoViewer = new PhotoViewer()
B) AdvancedPhotoViewer.prototype = Object.extend (new PhotoViewer ()
C) var AdvancedPhotoViewer = Class.extend (PhotoViewer)
D) AdvancedPhotoViewer = PhotoViewer.extend ()

Correct Answer:

verifed

Verified

Related Questions

Unlock this Answer For Free Now!

View this answer and more for free by performing one of the following actions

qr-code

Scan the QR code to install the App and get 2 free unlocks

upload documents

Unlock quizzes for free by uploading documents