Free CRT-600 Exam Braindumps (page: 13)

Page 12 of 57

A developer wants to set up a secure web server with Node.js. The developer creates a directory locally called app-server, and the first file is app-server/index.js Without using any third-party libraries, what should the developer add to index.js to create the secure web server?

  1. const https =require(`https');
  2. const server =require(`secure-server');
  3. const tls = require(`tls');
  4. const http =require(`http');

Answer(s): A



Given the code below:
const delay = sync delay => {
Return new Promise((resolve, reject) => {
setTimeout (resolve, delay);});};
const callDelay =async () =>{
const yup =await delay(1000);
console.log(1);
What is logged to the console?

  1. 1 2 3
  2. 1 3 2
  3. 2 1 3
  4. 2 3 1

Answer(s): D



Refer to the following code:
Let obj ={
Foo: 1,
Bar: 2
}
Let output =[],
for(let something in obj{
output.push(something);
}
console.log(output);

What is the output line 11?

  1. [1,2]
  2. ["bar","foo"]
  3. ["foo","bar"]
  4. ["foo:1","bar:2"]

Answer(s): C



Refer to the code below?
Let searchString = ` look for this ';
Which two options remove the whitespace from the beginning of searchString? Choose 2 answers

  1. searchString.trimEnd();
  2. searchString.trimStart();
  3. trimStart(searchString);
  4. searchString.replace(/*\s\s*/, `');

Answer(s): B,D






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

CRT-600 Discussions & Posts