Free CRT-600 Exam Braindumps (page: 6)

Page 5 of 57

A developer creates a class that represents a blog post based on the requirement that a Post should have a body author and view count.
The Code shown Below:
Class Post {
// Insert code here
This.body =body
This.author = author;
this.viewCount = viewCount;
}
}
Which statement should be inserted in the placeholder on line 02 to allow for a variable to be set to a new instanceof a Post with the three attributes correctly populated?

  1. super (body, author, viewCount) {
  2. Function Post (body, author, viewCount) {
  3. constructor (body, author, viewCount) {
  4. constructor() {

Answer(s): C



Which three options show valid methods for creating a fat arrow function? Choose 3 answers

  1. x => ( console.log(` executed ') ; )
  2. [ ] => ( console.log(` executed ') ;)
  3. ( ) => ( console.log(` executed ') ;)
  4. X,y,z => ( console.log(` executed ') ;)
  5. (x,y,z) => ( console.log(` executed ') ;)

Answer(s): A,E



Refer to the code below:
const event = new CustomEvent(
//Missing Code
);
obj.dispatchEvent(event);
A developer needs to dispatch a custom event called update to send information about recordId.
Which two options could a developer insert at the placeholder in line 02 to achieve this? Choose 2 answers

  1. `Update' , (
    recordId : `123abc'
    (
  2. `Update' , `123abc'
  3. { type : `update', recordId : `123abc' }
  4. `Update' , {
    Details : {
    recordId : `123abc'
    }
    }

Answer(s): A,D



Refer to the code below:

Const pi = 3.1415326,
What is the data type of pi?

  1. Double
  2. Number
  3. Decimal
  4. Float

Answer(s): B






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

CRT-600 Discussions & Posts