Free JavaScript-Developer-I Exam Braindumps

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

Page 4 of 44
QUESTION 11

Which three actions can be using the JavaScript browser console? Choose 3 answers:

  1. A. View and change DOM the page.
  2. B. Display a report showing the performance of a page.
  3. C. Run code that is not related to page.
  4. D. view , change, and debug the JavaScript code of the page.
  5. E. View and change security cookies.

Correct Answer: ACD

QUESTION 12

Given the code below:
JavaScript-Developer-I dumps exhibit
What is logged to the console?

  1. A. 1 2 3
  2. B. 1 3 2
  3. C. 2 1 3
  4. D. 2 3 1

Correct Answer: D

QUESTION 13

Refer to following code block:
Let array = [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11,];
Let output =0;
For (let num of array){ if (output >0){
Break;
}
if(num % 2 == 0){
Continue;
}
Output +=num;
What is the value of output after the code executes?

  1. A. 16
  2. B. 36
  3. C. 11
  4. D. 25

Correct Answer: A

QUESTION 14

A developer wrote the following code: 01 let X = object.value;
02
3 try {
4 handleObjectValue(X); 05 } catch (error) {
6 handleError(error);
7 }
The developer has a getNextValue function to execute after handleObjectValue(), but does not want to execute getNextValue() if an error occurs.
How can the developer change the code to ensure thisbehavior?

  1. A. 03 try{4 handleObjectValue(x);5 } catch(error){6 handleError(error); 07 } then {8 getNextValue();9 }
  2. B. 03 try{4 handleObjectValue(x);5 } catch(error){6 handleError(error); 07 } finally {08 getNextValue();10 }
  3. C. 03 try{04handleObjectValue(x); 05 } catch(error){6 handleError(error);7 }8 getNextValue();
  4. D. 03 try {04 handleObjectValue(x)05 ……………………

Correct Answer: D

QUESTION 15

The developer wants to test this code:
Const toNumber =(strOrNum) => strOrNum; Which two tests are most accurate for this code? Choose 2 answers

  1. A. console.assert(toNumber(‘2’) ===2);
  2. B. console.assert(Number.isNaN(toNumber()));
  3. C. console.assert(toNumber(‘-3’) < 0>console.assert(toNumber () === NaN);

Correct Answer: AC

Page 4 of 44

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