Free JavaScript-Developer-I Exam Braindumps

Pass your Salesforce Certified JavaScript Developer I exam with these free Questions and Answers

Page 6 of 44
QUESTION 21

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

  1. A. [title: “javaScript”] [title: “javaScript”]
  2. B. {author: “Robert”, title: “javaScript} Undefined
  3. C. {author: “Robert”, title: “javaScript}{author: “Robert”, title: “javaScript}
  4. D. {author: “Robert”}{author: “Robert”, title: “javaScript}

Correct Answer: A

QUESTION 22

Refer to the code below:
Let foodMenu1 =[‘pizza’, ‘burger’, ‘French fries’]; Let finalMenu = foodMenu1; finalMenu.push(‘Garlic bread’);
What is the value of foodMenu1 after the code executes?

  1. A. [ ‘pizza’,’Burger’, ‘French fires’, ‘Garlic bread’]
  2. B. [ ‘pizza’,’Burger’, ‘French fires’]
  3. C. [ ‘Garlic bread’ , ‘pizza’,’Burger’, ‘French fires’ ]
  4. D. [ ‘Garlic bread’]

Correct Answer: B

QUESTION 23

A test has a dependency on database. query. During the test, the dependency is replaced with an object called database with the method,
Calculator query, that returns an array. The developer does notneed to verify how many times the method has been called.
Which two test approaches describe the requirement? Choose 2 answers

  1. A. White box
  2. B. Stubbing
  3. C. Black box
  4. D. Substitution

Correct Answer: AD

QUESTION 24

Given HTML below:
JavaScript-Developer-I dumps exhibit
Which statement adds the priority = account CSS class to the universal COntainers row ?

  1. A. Document.querySelector(‘#row-uc’).classes.push(‘priority-account’);
  2. B. Document .queryElementById(‘row-uc’).addclass(‘priority-account’);
  3. C. Document .querySelector(‘#row-uc’).classList.add(‘priority-account’);
  4. D. Document .querySelectorALL(‘#row-uc’).classList.add(‘priority-account’);

Correct Answer: B

QUESTION 25

Which javascript methods can be used to serialize an object into a string and deserialize a JSON string into an object, respectively?

  1. A. JSON.stringify and JSON.parse
  2. B. JSON.serialize and JSON.deserialize
  3. C. JSON.encode and JSON.decode
  4. D. JSON.parse and JSON.deserialize

Correct Answer: A

Page 6 of 44

Post your Comments and Discuss Salesforce JavaScript-Developer-I exam with other Community members: