Free CRT-600 Exam Braindumps (page: 27)

Page 26 of 57

developer is trying to convince management that their team will benefit from using Node.js for a backend server that they are going to create. The server will be a web server that handles API requests from a website that the team has already built using HTML, CSS, and JavaScript.
Which three benefits of Node.js can the developer use to persuade their manager? Choose 3 answers:

  1. Installs with its own package manager to install and manage third-party libraries.
  2. Ensures stability with one major release every few years.
  3. Performs a static analysis on code before execution to look for runtime errors.
  4. Executes server-side JavaScript code to avoid learning a new language.
  5. Uses non-blocking functionality for performant request handling .

Answer(s): A,C,E



A developer is wondering whether to use, Promise.then or Promise.catch, especially when a Promise throws an error?
Which two promises are rejected?
Which 2 are correct?

  1. Promise.reject(`cool error here').then(error => console.error(error));
  2. Promise.reject(`cool error here').catch(error => console.error(error));
  3. New Promise((resolve, reject) => (throw `cool error here'}).catch(error => console.error(error)) ;
  4. New Promise(() => (throw `cool error here'}).then(null, error => console.error(error)));

Answer(s): B,C



Refer to code below:
function Person() {
this.firstName = 'John';
}
Person.prototype ={
Job: x => `Developer'
};
const myFather = new Person();
const result =myFather.firstName + ` ` + myFather.job(); What is the value of the result after line 10 executes?

  1. Error: myFather.job is not a function
  2. Undefined Developer
  3. John undefined
  4. John Developer

Answer(s): D



Universal Containers (UC) notices that its application that allows users to search for accounts makes a network request each time a key is pressed. This results in too many requests for the server to handle.
Address this problem, UC decides to implement a debounce function on string change handler.
What are three key steps to implement this debounce function? Choose 3 answers:

  1. If there is an existing setTimeout and the search string change, allow the existing setTimeout to finish, and do not enqueue a new setTimeout.
  2. When the search string changes, enqueue the request within a setTimeout.
  3. Ensure that the network request has the property debounce set to true.
  4. If there is an existing setTimeout and the search string changes, cancel the existing setTimeout using the persisted timerId and replace it with a new setTimeout.
  5. Store the timeId of the setTimeout last enqueued by the search string change handle.

Answer(s): A,B,C






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

CRT-600 Discussions & Posts