ExamGecko
Ask Question

Salesforce Certified JavaScript Developer I Practice Test - Questions Answers, Page 16

Add to Whishlist

List of questions

Question 151

Report Export Collapse

Given the following code:

Salesforce Certified JavaScript Developer I image Question 151 63822 09232024002545000000

is the output of line 02?

Become a Premium Member for full access
  Unlock Premium Member

Question 152

Report Export Collapse

A test has a dependency on database. query. During the test, the dependency is replaced with an object called database with the method, Calculator query, that returns an array. The developer does not need to verify how many times the method has been called.

Which two test approaches describe the requirement?

Choose 2 answers

Become a Premium Member for full access
  Unlock Premium Member

Question 153

Report Export Collapse

Universal Containers (UC) just launched a new landing page, but users complain that the website is slow. A developer found some functions any that might cause this problem. To verify this, the developer decides to execute everything and log the time each of these three suspicious functions consumes.

Which function can the developer use to obtain the time spent by every one of the three functions?

Salesforce Certified JavaScript Developer I image Question 153 63824 09232024002545000000

Become a Premium Member for full access
  Unlock Premium Member

Question 154

Report Export Collapse

A developer wrote the following code to test a sum3 function that takes in an array of numbers and returns the sum of the first three numbers in the array, and the test passes.

A different developer made changes to the behavior of sum3 to instead sum only the first two numbers present in the array.

Salesforce Certified JavaScript Developer I image Question 154 63825 09232024002545000000

Which two results occur when running this test on the updated sum3 function?

Choose 2 answers

Become a Premium Member for full access
  Unlock Premium Member

Question 155

Report Export Collapse

A developer has a web server running with Node.js. The command to start the web server is node server.js. The web server started having latency issues. Instead of a one second turnaround for web requests, the developer now sees a five second turnaround.

Which command can the web developer run to see what the module is doing during the latency period?

Become a Premium Member for full access
  Unlock Premium Member

Question 156

Report Export Collapse

Refer to the code below:

Salesforce Certified JavaScript Developer I image Question 156 63827 09232024002545000000

What is the value of result when the code executes?

Become a Premium Member for full access
  Unlock Premium Member

Question 157

Report Export Collapse

developer uses the code below to format a date.

Salesforce Certified JavaScript Developer I image Question 157 63828 09232024002545000000

After executing, what is the value of formattedDate?

Become a Premium Member for full access
  Unlock Premium Member

Question 158

Report Export Collapse

Refer of the string below:

Const str = 'sa;esforce'=;

Which two statement result in the word 'Sale'?

Choose 2 answers

Become a Premium Member for full access
  Unlock Premium Member

Question 159

Report Export Collapse

A developer writes the code below to return a message to a user attempting to register a new username. If the username is available, a variable named nag is declared and assigned a value on line 03.

Salesforce Certified JavaScript Developer I image Question 159 63830 09232024002545000000

What is the value of msg when getAvailableabilityMessage ("newUserName") is executed and get Availability ("newUserName") returns true?

Become a Premium Member for full access
  Unlock Premium Member

Question 160

Report Export Collapse

myArraym can have one level, two levels, or more levels.

Which statement flattens myArray when it can be arbitrarily nested?

Become a Premium Member for full access
  Unlock Premium Member
Total 224 questions
Go to page: of 23
Search

Related questions