Salesforce Certified JavaScript Developer I
Certified JavaScript Developer I Exam

A developer is wondering whether to use, promise, then or provise, catch especially when a promise throws an error.

Which two promises are rejected? Choose 2 answers

  1. Promise, rejected (Cool error here'), then (error => console (error ));
  2. New promise (() => (throw `Cool error here `)) , then ((null, error => console, (error)));
  3. New Promise((resolve, reject) => ( throw `Cool error here')) .catch (error => console (error ));
  4. Promise , reject (`Cool error here `) , catch (error => console ,error (error));

Answer(s): B,C



Refer to the code below:



What is the output if this function when called with an empty array?

  1. Retruns 0
  2. Throws an error
  3. Return 10
  4. Return NaN

Answer(s): C



Refer to the code below:



A developer uses a client that makes a GET request that uses a promise to handle the request, getRequest returns a promise.

Which code modification can the developer make to gracefully handle an error?

A)


B)


C)


D)

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

Answer(s): A



Refer to the following code that performs a basis mathematical operation on a provided input:



How should line o2 be written to ensure that x evaluated to 6 in the line below?

Let x calculate (`'g'');

  1. Return Number (num + 10) / 3;
  2. Return Number (num) + 10) / 3);
  3. Return integer (num + 10) / 3;
  4. Return Number (num + 10) / 3;

Answer(s): B




Passed
I just took my Certification testing for 10-184 Microsoft CRM Installation and Configuration. Your test questions definitely covered the essence of the exam material and I easily passed the exam.
- UNITED STATES
Upvote


Ed
I passed the IBM exam successfully
- UNITED STATES
Upvote


Tina
Last week I took the Citrix exam and I passed with a very high mark, more than what I expected. Thanks!!
- Israel
Upvote


Calvin B.
I just took my Certification testing for 10-184 Microsoft CRM Installation and Configuration. Your test questions definitely covered the essence of the exam material and I easily passed the exam.
- Lafayette
Upvote


950+
I just finished my exam this week. It was a good score of 950+.
- UNITED STATES
Upvote


Abdul
I passed the exam on Monday morning and was amazed at how much this site had covered, fortunately that's it for another three years. The tests really did help so thanks!!
- Doha
Upvote


Rose
I passed that exam the first time. And I thank you folks for that. I could not have passed it with out your help.
- South Africa
Upvote


Shourya
I've just done my exam and passed (890) - your materials are spot on.
- UNITED STATES
Upvote


90%
I have sat and passed.
- Haidarabad
Upvote


Jessica
Thanks to this site! i passed my 310-055 exam with 90%
- UNITED STATES
Upvote

Read more ...