Free CRT-600 Exam Braindumps (page: 19)

Page 18 of 57

Given two expressions var1 and var2.
What are two valid ways to return the logical AND of the two expressions and ensure it is data type Boolean ? Choose 2 answers:

  1. Boolean(var1 && var2)
  2. var1 && var2
  3. var1.toBoolean() && var2toBoolean()
  4. Boolean(var1) && Boolean(var2)

Answer(s): A,D



Cloud Kicks has a class to represent items for sale in an online store, as shown below:
Class Item{
constructor (name, price){

this.name = name;
this.price = price;
}
formattedPrice(){
return `s' + String(this.price);}}
A new business requirement comes in that requests a ClothingItem class that should have all of the properties and methods of the Item class but will also have properties that are specific to clothes.
Which line of code properly declares the clothingItem class such that it inherits from Item?

  1. Class ClothingItem implements Item{
  2. Class ClothingItem {
  3. Class ClothingItem super Item {
  4. Class ClothingItem extends Item {

Answer(s): D



Refer to the code below:



Line 05 causes an error.
What are the values of greeting and salutation once code completes?

  1. Greeting is Hello and salutation is Hello, Hello.
  2. Greeting is Goodbye and salutation is Hello, Hello.
  3. Greeting is Goodbye and salutation is I say Hello.
  4. Greeting is Hello and salutation is I say hello.

Answer(s): A



Refer to the code below:
Let str = `javascript';

Str[0] = `J';
Str[4] = 'S';
After changing the string index values, the value of str is `javascript'.
What is the reason for this value:

  1. Non-primitive values are mutable.
  2. Non-primitive values are immutable.
  3. Primitive values are mutable.
  4. Primitive values are immutable.

Answer(s): D






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

CRT-600 Discussions & Posts