Salesforce-JavaScript-Developer Practice Test
Updated On 18-Sep-2025
221 Questions
Which statement accurately describes an aspect of promises?
A. Arguments for the callback function passed to .then() are optional.
B. In a .then() function, returning results is not necessary since callbacks will catch the result of a previous promise.
C. .then() cannot be added after a catch.
D. .then() manipulates and returns the original promise.
A developer is leading the creation of a new web server for their team that will fulfill API requests from an existing client. The team wants a web server that runs on Node.Js, and they want to use the new web framework Minimalist.Js. The lead developer wants to advocate for a more seasoned back-end framework that already has a community around it. Which two frameworks could the lead developer advocate for? (Choose 2 answers)
A. Gatsby
B. Angular
C. Express
D. Koa
B. Angular
A developer tries to retrieve all cookies, then sets a certain key value pair in the cookie.
These statements are used:
What is the behavior?
A. Cookies are read, but the key value is not set because the value is not URL encoded.
B. Cookies are not read because line 01 should be document, cookies, but the key value is set and all cookies are wiped.
C. A Cookies are read and the key value is set, the remaining cookies are unaffected.
D. Cookies are read and the key value is set, and all cookies are wiped.
Given the following code:
What is the output of line 02?
A. "null"
B. "x-
C. "undefined" 0
D. 'object"
A developer wants to use a module called DataPrettyPrint. This module exports one default function called printDate ().
How can a developer import and use the printDate() function?
A. Option A
B. Option B
C. Option C
D. Option D
Page 1 out of 45 Pages |