JavaScript-Developer-I Salesforce Certified JavaScript Developer I

Loading demo links...

Showing 10–12 of 15 questions

Question 10

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 shows the correct way to set up a client with two events that listen at execution time?

A.

B. C.

D.

Answer: B

Explanation:

Select an option, then click Submit answer.

  • C.
    D.

Question 11

A developer has an ErrorHandler module that contains multiple functions.

What kind of export be leverages so that multiple functions can be used?

Select an option, then click Submit answer.

  • Named

  • All

  • Multi

  • Default

Question 12

A developer creates an object where its properties should be immutable and prevent

properties from being added or modified.

Which method should be used to execute this business requirement ?

Select an option, then click Submit answer.

  • Object.const()

  • Object.eval()

  • Object.lock()

  • Object.freeze()