[Nov-2022] CRT-600 Dumps With 100% Verified Q&As - Pass Guarantee or Full Refund [Q125-Q149]

Share

[Nov-2022] CRT-600 Dumps With 100% Verified Q&As - Pass Guarantee or Full Refund

Pass Salesforce CRT-600 Exam With Practice Test Questions Dumps Bundle


Salesforce CRT-600 Exam Syllabus Topics:

TopicDetails
Topic 1
  • Creating Objects, Object Prototypes, Defining Functions
Topic 2
  • Type Conversion (explicit and implicit)
  • Working with JSON
  • Data Types and Variables
Topic 3
  • JavaScript Basics
  • Working with Strings, Numbers, and Dates
Topic 4
  • Objects, Functions, and Classes
  • Using JavaScript Modules
  • Declaring Classes
Topic 5
  • Asynchronous Programming
  • Callback Functions
  • Promises and Async
  • Await
Topic 6
  • Debugging and Error Handling
  • Throwing and Catching Errors
  • Working with the Console
Topic 7
  • Browser and Events
  • Document Object Model
  • Browser Dev Tools

 

NEW QUESTION 125
Refer to the following code:
function test (val) {
If (val === undefined) {
return 'Undefined values!' ;
}
if (val === null) {
return 'Null value! ';
}
return val;
}
Let x;
test(x);
What is returned by the function call on line 13?

  • A. Undefined
  • B. 'Null value!'
  • C. 'Undefined values!'
  • D. Line 13 throws an error.

Answer: C

 

NEW QUESTION 126
Given the JavaScript below:
01 function filterDOM (searchString) {
02 const parsedSearchString = searchString && searchString.toLowerCase() ;
03 document.quesrySelectorAll(' .account' ) . forEach(account => (
04 const accountName = account.innerHTML.toLOwerCase();
05 account. Style.display = accountName.includes(parsedSearchString) ? /*Insert code*/;
06 )};
07 }
Which code should replace the placeholder comment on line 05 to hide accounts that do not match the search string?

  • A. ' name ' : ' block '
  • B. ' hidden ' : ' visible '
  • C. ' Block ' : ' none '
  • D. ' visible ' : ' hidden '

Answer: C

 

NEW QUESTION 127
Which code statement below correctly persists an objects in local Storage ?

  • A. const setLocalStorage = (storageKey, jsObject) => {
    window.localStorage.persist(storageKey, jsObject);
    }
  • B. const setLocalStorage = (storageKey, jsObject) => {
    window.localStorage.setItem(storageKey, JSON.stringify(jsObject));
    }
  • C. const setLocalStorage = ( jsObject) => {
    window.localStorage.connectObject(jsObject));
    }
  • D. const setLocalStorage = ( jsObject) => {
    window.localStorage.setItem(jsObject);
    }

Answer: B

Explanation:

 

NEW QUESTION 128
Which statement accurately describes an aspect of promises?

  • A. .then() manipulates and returns the original promise.
  • B. In a.then() function, returning results is not necessary since callbacks will catch the result of a previous promise.
  • C. Arguments for the callback function passed to .then() are optional.
  • D. .then() cannot be added after a catch.

Answer: C

 

NEW QUESTION 129
Refer to the following array:
Let arr = [1, 2, 3, 4, 5];
Which three options result in x evaluating as [1, 2]?
Choose 3 answer

  • A. let x = arr. slice (0, 2);
  • B. let x = arr. slice (2);
  • C. let x arr.filter((a) => (return a <= 2 });
  • D. let x =arr.splice(0, 2);
  • E. let x = arr.filter ((a) => 2 }) ;

Answer: A,C,D

 

NEW QUESTION 130
A developer has two ways to write a function:
Option A:
function Monster() {
This.growl = () => {
Console.log ("Grr!");
}
}
Option B:
function Monster() {};
Monster.prototype.growl =() => {
console.log("Grr!");
}
After deciding on an option, the developer creates 1000 monster objects.
How many growl methods are created with Option A Option B?

  • A. 1 growl method is created regardless of which option is used.
  • B. 1000 growl method is created for Option A. 1 growl methods are created for Option B.
  • C. 1 growl method is created for Option A. 1000 growl methods are created for Option B.
  • D. 1000 growl methods are created regardless of which option is used.

Answer: B

 

NEW QUESTION 131
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?

  • A. John undefined
  • B. Undefined Developer
  • C. Error: myFather.job is not a function
  • D. John Developer

Answer: D

 

NEW QUESTION 132
A developer wants to leverage a module to print a price in pretty format, and has imported a method as shown below:
Import printPrice from '/path/PricePrettyPrint.js';
Based on the code, what must be true about the printPrice function of the PricePrettyPrint module for this import to work ?

  • A. printPrice must be an all export
  • B. printPrice must be a multi exportc
  • C. printPrice must be be a named export
  • D. printPrice must be the default export

Answer: D

 

NEW QUESTION 133
bar, awesome is a popular JavaScript module. the versions publish to npm are:

Teams at Universal Containers use this module in a number of projects. A particular project has the package, json definition below.

A developer runs this command: npm install.
Which version of bar .awesome is installed?

  • A. 1.3.5
  • B. 1.3.1
  • C. 1.4.0
  • D. The command fails, because version 130 is not found

Answer: A

 

NEW QUESTION 134
Refer to code below:
Const objBook = {
Title: 'Javascript',
};
Object.preventExtensions(objBook);
Const newObjBook = objBook;
newObjectBook.author = 'Robert';
What are the values of objBook and newObjBook respectively ?

  • A. {author: "Robert", title: "javaScript}
    Undefined
  • B. [title: "javaScript"] [title: "javaScript"]
  • C. {author: "Robert", title: "javaScript}
    {author: "Robert", title: "javaScript}
  • D. {author: "Robert"}
    {author: "Robert", title: "javaScript}

Answer: B

 

NEW QUESTION 135
Refer to the code below:
Let inArray =[ [ 1, 2 ] , [ 3, 4, 5 ] ];
Which two statements result in the array [1, 2, 3, 4, 5] ?
Choose 2 answers

  • A. [ ]. Concat (... inArray);
  • B. [ ]. concat ( [ ....inArray ] );
  • C. [ ]. Concat.apply ([ ], inArray);
  • D. [ ]. concat.apply(inArray, [ ]);

Answer: A,C

 

NEW QUESTION 136
At Universal Containers, every team has its own way of copying JavaScript objects. The code snippet shows an Implementation from one team:

What is the output of the code execution?

  • A. Hello Dan
  • B. Hello Dan Doe
  • C. SyntaxError: Unexpected token in JSON
  • D. Hello John Doe

Answer: C

 

NEW QUESTION 137
Refer to the following code block:

What is the console output?

  • A. > Better student Jackie got 100% on test.
  • B. > Jackie got 70% on test.
  • C. > Uncaught Reference Error
  • D. > Better student Jackie got 70% on test.

Answer: A

 

NEW QUESTION 138
A developer is leading the creation of a new web server for their team that will fulfill API requests from an existing client.
The team wants a web server that runs on Node.Js, and they want to use the new web framework Minimalist.Js. The lead developer wants to advocate for a more seasoned back-end framework that already has a community around it.
Which two frameworks could the lead developer advocate for?
Choose 2 answers

  • A. Koa
  • B. Gatsby
  • C. Angular
  • D. Express

Answer: C,D

 

NEW QUESTION 139
Given the following code:

is the output of line 02?

  • A. ''x''
  • B. ''undefined''
  • C. ''object''
  • D. ''null'''

Answer: C

 

NEW QUESTION 140
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?

  • A. Developer
  • B. Undefined
  • C. ReferenceError: eyeColor is not defined
  • D. ReferenceError: assignment to undeclared variable "Person"

Answer: B

 

NEW QUESTION 141
A developer creates a simple webpage with an input field. When a user enters text in the input field and clicks the button, the actual value of the field must be displayed in the console.
Here is the HTML file content:
<input type =" text" value="Hello" name ="input">
<button type ="button" >Display </button> The developer wrote the javascript code below:
Const button = document.querySelector('button');
button.addEvenListener('click', () => (
Const input = document.querySelector('input');
console.log(input.getAttribute('value'));
When the user clicks the button, the output is always "Hello".
What needs to be done to make this code work as expected?

  • A. Replace line 03 with const input = document.getElementByName('input');
  • B. Replace line 02 with button.addEventListener("onclick", function() {
  • C. Replace line 04 with console.log(input .value);
  • D. Replace line 02 with button.addCallback("click", function() {

Answer: C

 

NEW QUESTION 142
Refer to the following code:

What is the output of line 11?

  • A. ["bar", "foo"]
  • B. ["foo", "bar"]
  • C. [1,2]
  • D. ["foo:1", "bar:2"]

Answer: B

 

NEW QUESTION 143
Which code statement below correctly persists an objects in local Storage ?

  • A. const setLocalStorage = (storageKey, jsObject) => {
    window.localStorage.persist(storageKey, jsObject);
    }
  • B. const setLocalStorage = (storageKey, jsObject) => {
    window.localStorage.setItem(storageKey, JSON.stringify(jsObject));
    }
  • C. const setLocalStorage = ( jsObject) => {
    window.localStorage.connectObject(jsObject));
    }
  • D. const setLocalStorage = ( jsObject) => {
    window.localStorage.setItem(jsObject);
    }

Answer: B

 

NEW QUESTION 144
Refer to following code:
class Vehicle {
constructor(plate) {
This.plate =plate;
}
}
Class Truck extends Vehicle {
constructor(plate, weight) {
//Missing code
This.weight = weight;
}
displayWeight() {
console.log('The truck ${this.plate} has a weight of ${this.weight} lb.');}} Let myTruck = new Truck('123AB', 5000); myTruck.displayWeight(); Which statement should be added to line 09 for the code to display 'The truck 123AB has a weight of 5000lb.'?

  • A. Vehicle.plate = plate;
  • B. This.plate =plate;
  • C. super(plate);
  • D. Super.plate =plate;

Answer: C

 

NEW QUESTION 145
A team that works on a big project uses npm to deal with projects dependencies.
A developer added a dependency does not get downloaded when they execute npm install.
Which two reasons could be possible explanations for this?
Choose 2 answers

  • A. The developer missed the option --save when adding the dependency.
  • B. The developer added the dependency as a dev dependency, and
    NODE_ENV
    Is set to production.
  • C. The developer added the dependency as a dev dependency, and
    NODE_ENV is set to production.
  • D. The developer missed the option --add when adding the dependency.

Answer: A,B,C

 

NEW QUESTION 146
Refer the code below.
x=3.14;
function myfunction() {
"use strict";
y=x;
}
z=x;
myFunction();

Answer:

Explanation:
Z is equal to 3.14
Use strict has effect only on line 5.
Line 5 throws an error

 

NEW QUESTION 147
A developer creates a simple webpage with an input field. When a user enters text in the input field and clicks the button, the actual value of the field must be displayed in the console.
Here is the HTML file content:
<input type =" text" value="Hello" name ="input">
<button type ="button" >Display </button>
The developer wrote the javascript code below:
Const button = document.querySelector('button');
button.addEvenListener('click', () => (
Const input = document.querySelector('input');
console.log(input.getAttribute('value'));
When the user clicks the button, the output is always "Hello".
What needs to be done make this code work as expected?

  • A. Replace line 03 with const input = document.getElementByName('input');
  • B. Replace line 02 with button.addEventListener("onclick", function() {
  • C. Replace line 04 with console.log(input .value);
  • D. Replace line 02 with button.addCallback("click", function() {

Answer: C

 

NEW QUESTION 148
A developer is setting up a new Node.js server with a client library that is built using events and callbacks.
The library:
* Will establish a web socket connection and handle receipt of messages to the server
* Will be imported with require, and made available with a variable called we.
The developer also wants to add error logging if a connection fails.
Given this info, which code segment shows the correct way to set up a client with two events that listen at execution time?

  • A. ws.on ('connect', ( ) => { console.log('connected to client'); }}; ws.on('error', (error) => { console.log('ERROR' , error); }};
  • B. ws.on ('connect', ( ) => {
    console.log('connected to client'); ws.on('error', (error) => { console.log('ERROR' , error); });
    });
  • C. ws.connect (( ) => {
    console.log('connected to client'); }).catch((error) => { console.log('ERROR' , error); }};
  • D. try{
    ws.connect (( ) => {
    console.log('connected to client'); });
    } catch(error) { console.log('ERROR' , error); };
    }

Answer: A

 

NEW QUESTION 149
......

2022 Valid CRT-600 test answers & Salesforce Exam PDF: https://www.exam4docs.com/CRT-600-study-questions.html

Free Salesforce CRT-600 Exam Questions and Answer from Training Expert Exam4Docs: https://drive.google.com/open?id=1lzaXFEVhRjAVeDoySqJk2gRQI9ZZ68Oc