Salesforce Certified JavaScript Developer (JS-Dev-101) JavaScript-Developer-I Question # 30 Topic 4 Discussion

Salesforce Certified JavaScript Developer (JS-Dev-101) JavaScript-Developer-I Question # 30 Topic 4 Discussion

JavaScript-Developer-I Exam Topic 4 Question 30 Discussion:
Question #: 30
Topic #: 4

Universal Containers (UC) notices that its application that allows users to search for

accounts makes a network request each time a key is pressed. This results in too many

requests for the server to handle.

● Address this problem, UC decides to implement a debounce function on string change

handler.

What are three key steps to implement this debounce function?

Choose 3 answers:


A.

If there is an existing setTimeout and the search string change, allow the existingsetTimeout to finish, and do not enqueue a new setTimeout.


B.

When thesearch string changes, enqueue the request within a setTimeout.


C.

Ensure that the network request has the property debounce set to true.


D.

If there is an existing setTimeout and the search string changes, cancel the existingsetTimeout using thepersisted timerId and replace it with a new setTimeout.


E.

Store the timeId of the setTimeout last enqueued by the search string change handle.


Get Premium JavaScript-Developer-I Questions

Contribute your Thoughts:


Chosen Answer:
This is a voting comment (?). It is better to Upvote an existing comment if you don't have anything to add.