Free Certified JavaScript Developer I Exam Braindumps (page: 3)

Page 2 of 20

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

  1. JSON,serialize and JSON,desrialize
  2. JSON.encode and JSON decode
  3. JSON.parse and JSON deserialize
  4. JSON.Stringify and JSON.parse

Answer(s): A



A developer wrote a fizzbuzz function that when passed in a number, returns the following:

Fizz if the number is divisible by 3.

Buzz if the number is divisible by 5.

Fizzbuzz if the number is divisible by both 3 and 5.

Empty string if the number is divisible by neither 3 or 5.

Which two test cases will properly test scenarios for the fizzbuss function?

  1. Let res = fizzbuss (3) ;
    Console.assert (res === 'buzz' ) ;
  2. Let res = fizzbuss (Infinity);
    Console.assert (res === '' ) ;
  3. Let res = fizzbuss (15) ;
    Console. assert (res === 'fizzbuzz' ) ;
  4. Let res = fizzbuss (5) ;

    Console. assert (res === '' ) ;

Answer(s): B,C



Refer to the code below:



What is the result of running line 05?

  1. aPromise and bPromise run sequentially.
  2. Neither aPromise or bPromise runs.
  3. Apromise and bpromise run in parallel.
  4. Only apromise runs.

Answer(s): B



Refer to the code below:



What is the value of result when the code executes?

  1. 10 - 10
  2. 5 - 5
  3. 5 - 10
  4. 10 - 5

Answer(s): A






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

Certified JavaScript Developer I Discussions & Posts