Free CRT-600 Exam Braindumps (page: 3)

Page 2 of 57

Refer to the code below:
for(let number =2 ; number <= 5 ; number += 1 ) {
// insert code statement here
}
The developer needs to insert a code statement in the location shown. The code statement has these requirements:
1. Does require an import
2. Logs an error when the boolean statement evaluates to false
3. Works in both the browser and Node.js
Which meet the requirements?

  1. assert (number % 2 === 0);
  2. console.error(number % 2 === 0);
  3. console.debug(number % 2 === 0);
  4. console.assert(number % 2 === 0);

Answer(s): B



A developer is working on an ecommerce website where the delivery date is dynamically calculated based on the current day. The code line below is responsible for this calculation.
Const deliveryDate = new Date ();
Due to changes in the business requirements, the delivery date must now be today's date + 9 days.
Which code meets this new requirement?

  1. deliveryDate.setDate(( new Date ( )).getDate () +9);
  2. deliveryDate.setDate( Date.current () + 9);
  3. deliveryDate.date = new Date(+9) ;
  4. deliveryDate.date = Date.current () + 9;

Answer(s): A



Which three statements are true about promises ?
Choose 3 answers

  1. The executor of a new Promise runs automatically.
  2. A Promise has a .then() method.
  3. A fulfilled or rejected promise will not change states .
  4. A settled promise can become resolved.
  5. A pending promise can become fulfilled, settled, or rejected.

Answer(s): B,C,E



Given the code below:
01 function GameConsole (name) {
02 this.name = name;
03 }
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 . . .

  1. Console16bit.prototype.load(gamename) = function() {
  2. Console16bit.prototype.load = function(gamename) {
  3. Console16bit = Object.create(GameConsole.prototype).load = function (gamename) {
  4. Console16bit.prototype.load(gamename) {

Answer(s): B






Post your Comments and Discuss Salesforce CRT-600 exam with other Community members:

CRT-600 Discussions & Posts