Free JavaScript-Developer-I Exam Braindumps

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

Page 7 of 44
QUESTION 26

Refer to the code below:
JavaScript-Developer-I dumps exhibit
Which two statements correctly execute the runParallel () function? Choose 2 answers

  1. A. Async runParallel () .then(data);
  2. B. runParallel ( ). done(function(data){ return data;});
  3. C. runParallel () .then(data);
  4. D. runParallel () .then(function(data) return data

Correct Answer: BD

QUESTION 27

Given the code below: Setcurrent URL ();
console.log(‘The current URL is: ‘ +url ); function setCurrentUrl() {
Url = [removed].href:
What happens when the code executes?

  1. A. The url variable has local scope and line 02 throws an error.
  2. B. The url variable has global scope and line 02 executes correctly.
  3. C. The url variable has global scope and line 02 throws an error.
  4. D. The url variable has local scope and line 02 executes correctly.

Correct Answer: B

QUESTION 28

Which option is true about the strict mode in imported modules?

  1. A. Add the statement use non-strict, before any other statements in the module to enable not-strict mode.
  2. B. You can only reference notStrict() functions from the imported module.
  3. C. Imported modules are in strict mode whether you declare them as such or not.
  4. D. Add the statement use strict =false; before any other statements in the module to enable not- strict mode.

Correct Answer: B

QUESTION 29

Which statement parses successfully?

  1. A. JSO
  2. B. parse (""foo"');
  3. C. JSON.parse (""foo'");
  4. D. JSON.parse ("foo");
  5. E. JSON.parse ("foo");

Correct Answer: A

QUESTION 30

Refer to the following array:
Let arr1 = [ 1, 2, 3, 4, 5 ];
JavaScript-Developer-I dumps exhibit
Which two lines of code result in a second array, arr2 being created such that arr2 is not a reference to arr1?

  1. A. Let arr2 = arr1.slice(0, 5);
  2. B. Let arr2 = Array.from(arr1);
  3. C. Letarr2 = arr1;
  4. D. Let arr2 = arr1.sort();

Correct Answer: AB

Page 7 of 44

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