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

Page 8 of 20

Refer to the code:



Given the code above, which three properties are set for pet1? Choose 3 answers

  1. canTalk
  2. speak
  3. name
  4. owner
  5. type

Answer(s): A,C,E



Refer to the expression below:

Let x = (`1' + 2) == (6 + 2) ;

How should this expression be modified to ensure that a evaluated to false?

  1. Let x = (1' + `2') == (6 + 2) ;
  2. Let x = (1' + `2') === (6 + 2) ;
  3. Let x = (1' + `2') == (`6' / 2) ;
  4. Let x = (1' + `2') === (6 / 2) ;

Answer(s): B



What are two unique feature of function defined with a fat arror as compared to normal functional definition?

  1. The function generation its own this making it useful for separating the function's scope its enclosing scope
  2. The function receives an argument that is always in scope, called parent this, which is the enclosing lexical scope
  3. If the function has a single expression in the function body, the expression will be evaluated and implicitly returned.
  4. The function uses the this from the enclosing scope.

Answer(s): C



A developer is setting up a new Node.js server with a client library that is built using events and callbacks.

The library:

* Will establish a web socket connection and handle receipt of messages to the server

* Will be imported with require, and made available with a variable called ws.

The developer also wants to add error logging if a connection fails.

Given this information, which code segment show the correct way to set up a client two events that listen at execution time?

A)


B)


C)


D)

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

Answer(s): D






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

Certified JavaScript Developer I Discussions & Posts