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

Page 5 of 20

A developer implements and calls the following code when an application state change occurs:



If the back button is clicked after this method is executed, what can a developer expect?

  1. A navigate event is fired with a state properly that details previous application state.
  2. The page is navigated away from and previous page in the browser's history is loaded.
  3. The page reloads and all JavaScript is reinitialized.
  4. A popstate event is fired with a state properly that details the application's last state.

Answer(s): B



Refer to the code below:



What value can a developer expect when referencing o,js,secondCity?

  1. Undefined
  2. `new york'
  3. `New York
  4. An error

Answer(s): B



Refer to the code below:



After running this code, which result is displayed on the console?

  1. > True
    > False
  2. > 5
    > Undefined
  3. > 5
    >- 1
  4. > 5
    > 0

Answer(s): C



Universal Container (UC) notices that its application allows users to search for account makes a network request each time a key is pressed. This results in too many request for the server to handle.

O address this problem, UC decides to implement a deboune function on the search string change handler.
Choose 3 answers

  1. Store the timeId of the setTimeout last enqueued by the search string change handler.
  2. If there is an existing settimeout and the search string changes, allow the existing setTimeout to finish, and do not enqueue a settimeout.
  3. When the search string changes, enqueue the request within a setTimeout.
  4. If the there is an existing setTimeout and the search string changes, cancel the existing setTimeout using the persisted timeout replace it with a new setTimeout.
  5. Ensure that the network request has the property debounce set to true,

Answer(s): C,D,E






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

Certified JavaScript Developer I Discussions & Posts