Free CRT-600 Exam Braindumps (page: 16)

Page 15 of 57

Given the following code:
Counter = 0;
const logCounter = () => {
console.log(counter);
);
logCounter();
setTimeout(logCOunter, 1100);
setInterval(() => {
Counter++
logCounter();
}, 1000);
What is logged by the first four log statements?

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

Answer(s): C



Refer to the code below:
Function Person(firstName, lastName, eyecolor) {
this.firstName =firstName;
this.lastName = lastName;
this.eyeColor = eyeColor;
}
Person.job = `Developer';
const myFather = new Person(`John', `Doe');

console.log(myFather.job);
What is the output after the code executes?

  1. ReferenceError: eyeColor is not defined
  2. ReferenceError: assignment to undeclared variable "Person"
  3. Developer
  4. Undefined

Answer(s): D



A developer at Universal Containers creates a new landing page based on HTML, CSS, and JavaScript TO ensure that visitors have a good experience, a script named personaliseContext needs to be executed when the webpage is fully loaded (HTML content and all related files ), in order to do some custom initialization.
Which statement should be used to call personalizeWebsiteContent based on the above business requirement?

  1. document.addEventListener(`'onDOMContextLoaded', personalizeWebsiteContext);
  2. window.addEventListener(`load',personalizeWebsiteContext);
  3. window.addEventListener(`onload', personalizeWebsiteContext);
  4. Document.addEventListener(``'DOMContextLoaded' , personalizeWebsiteContext);

Answer(s): B



A developer is leading the creation of a new browser application that will serve a single page application. The team wants to use a new web framework Minimalsit.js. The Lead developer wants to advocate for a more seasoned web framework that already has a community around it.
Which two frameworks should the lead developer advocate for? Choose 2 answers

  1. Vue
  2. Angular
  3. Koa
  4. Express

Answer(s): B,D






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

CRT-600 Discussions & Posts