Question 6

The developer has a function that prints "Hello" to an input name. To test this, thedeveloper created a function that returns "World". However the following snippet does not print " Hello World".

What can the developer do to change the code to print "Hello World" ?
  • Question 7

    A developer publishes a new version of a package with new feature that do not break backward compatibility. The previous version number was 1.1.3.
    Following semantic versioning format, what should the new package version number be?
  • Question 8

    developer uses the code below to format a date.

    After executing, what is the value of formattedDate?
  • Question 9

    The developer wants to test the code:
    Const toNumber = (strOrNum) => + strOrNum;
    Which two tests are most accurate for this code? Choose 2 answers
  • Question 10

    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 . . .