ExamGecko
Question list
Search
Search

List of questions

Search

Related questions











Question 8 - Certified JavaScript Developer I discussion

Report
Export

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 a game : $(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 cartridge game: Super Monic 3x Force . . .

A.
Console16bit.prototype.load(gamename) = function() {
Answers
A.
Console16bit.prototype.load(gamename) = function() {
B.
Console16bit.prototype.load = function(gamename) {
Answers
B.
Console16bit.prototype.load = function(gamename) {
C.
Console16bit = Object.create(GameConsole.prototype).load = function(gamename) {
Answers
C.
Console16bit = Object.create(GameConsole.prototype).load = function(gamename) {
D.
Console16bit.prototype.load(gamename) {
Answers
D.
Console16bit.prototype.load(gamename) {
Suggested answer: B
asked 23/09/2024
Steve Jenkins-Thorkildson
39 questions
User
Your answer:
0 comments
Sorted by

Leave a comment first