Salesforce Certified JavaScript Developer (JS-Dev-101) JavaScript-Developer-I Question # 53 Topic 6 Discussion

Salesforce Certified JavaScript Developer (JS-Dev-101) JavaScript-Developer-I Question # 53 Topic 6 Discussion

JavaScript-Developer-I Exam Topic 6 Question 53 Discussion:
Question #: 53
Topic #: 6

Given the code below:

01 function GameConsole (name) {

02 this.name = name;

03 }

04

05 GameConsole.prototype.load = function(gamename) {

06 console.log( ` $(this.name) is loading agame : $(gamename) …`);

07 )

08 function Console 16 Bit (name) {

09 GameConsole.call(this, name) ;

10 }

11 Console16bit.prototype = Object.create ( GameConsole.prototype) ;

12 //insert code here

13 console.log( ` $(this.name) is loading a cartridge game :$(gamename) …`);

14 }

15 const console16bit = new Console16bit(‘ SNEGeneziz ’);

16 console16bit.load(‘ Super Nonic 3x Force ’);

What should a developer insert at line 15 to output the following message using the

method ?

> SNEGeneziz is loading a cartridgegame: Super Monic 3x Force . . .


A.

Console16bit.prototype.load(gamename) = function() {


B.

Console16bit.prototype.load = function(gamename) {


C.

Console16bit = Object.create(GameConsole.prototype).load = function(gamename) {


D.

Console16bit.prototype.load(gamename) {


Get Premium JavaScript-Developer-I Questions

Contribute your Thoughts:


Chosen Answer:
This is a voting comment (?). It is better to Upvote an existing comment if you don't have anything to add.