ExamDumpster

Free JS-Dev-101 sample questions

Real questions from the Salesforce Certified JavaScript Developer I practice bank, with the correct answer and an explanation for each one. No junk, no filler.

Try them in the simulator Same questions, with study, timed and flashcard modes.

Showing 8 of 17 free sample questions.

Question 1Choose one

A developer is building a financial dashboard that processes transaction lists. They need to calculate the total balance from an array of transaction objects, where each object contains a `type` ('credit' or 'debit') and an `amount`. Which array method and implementation best achieves this single-value result?

Question 2Choose one

A developer encounters a bug where a variable declared inside a `for` loop is accessible outside the loop, causing unexpected behavior in subsequent logic. The code uses the `var` keyword. Which explanation describes why this is happening?

Question 3Choose one

A developer needs to create a unique list of user IDs from a raw array that contains duplicates. The final result must be an array. Which approach provides the most concise and performant solution?

Question 4Choose one

Consider the following code snippet involving object mutation: ```javascript const config = { env: 'dev', retries: 3 }; config.retries = 5; config = { env: 'prod', retries: 1 }; ``` What happens when this code executes?

Question 5Choose one

A developer needs to sort an array of product objects by price (ascending). The price is a numeric property. `const products = [{id: 1, price: 100}, {id: 2, price: 5}, {id: 3, price: 25}];` Which sort implementation works correctly?

Question 6Choose one

A developer is parsing a JSON string received from an API. The string contains a date field in ISO format. The developer wants to automatically convert this string into a JavaScript Date object during parsing. Which feature of `JSON.parse` should be used?

Question 7Choose 2

Which of the following expressions evaluates to `true` in JavaScript? (Select TWO)

Question 8Choose one

A developer writes the following function to create a greeting: ```javascript function greet(name, greeting = 'Hello') { return `${greeting}, ${name}!`; } ``` What feature is being used for the `greeting` argument?

9 more free samples are waiting

Create a free account to unlock the whole JS-Dev-101 sample bank, or get full access to all 204 practice questions in the simulator.

Create account