Salesforce JavaScript Developer I Practice Exams
Last updated on Nov 16,2026- Exam Code: JavaScript Developer I
- Exam Name: Salesforce Certified JavaScript Developer I
- Certification Provider: Salesforce
- Latest update: Nov 16,2026
Refer to code below:
console.log(0);
setTimeout(() => (
console.log(1);
});
console.log(2);
setTimeout(() => {
console.log(3);
), 0);
console.log(4);
In which sequence will the numbers be logged?
- A . 01234
- B . 02431
- C . 02413
- D . 13024
Given the code below:
const delay = async delay =>{
return new Promise((resolve,reject)=>{
console.log(1);
setTimeout(resolve,deleay);
});
};
const callDelay =async ()=>{
console.log(2);
const yup = await delay(1000);
console.log(3);
}
console.log(4);
callDelay();
console.log(5);
What is logged to the console?
- A . 42153
A developer is leading the creation of a new browser application that will serve a single page application. The team wants to use a new web framework Minimalsit.js. The Lead developer wants to advocate for a more seasoned web framework that already has a community around it.
Which two frameworks should the lead developer advocate for? Choose 2 answers
- A . Vue
- B . Angular
- C . Koa
- D . Express
Which option istrue about the strict mode in imported modules?
- A . Add the statement use non-strict, before any other statements in the module to enablenot-strict mode.
- B . You can only reference notStrict() functions from the imported module.
- C . Imported modules are in strict mode whether you declare them as such or not.
- D . Add the statement use strict =false; before any other statements in the module to enablenot- strict mode.
Considering the implications of ‘use strict’ on line 04, which three statements describe the execution of the code? Choose 3 answers
- A . z is equal to 3.14.
- B . ‘use strict’ is hoisted, so it has an effect on all lines.
- C . ‘use strict’ has an effect only on line 05.
- D . ‘use strict’ has an effect between line 04 and the end of the file.
- E . Line 05 throws an error.
Whichthree actions can be using the JavaScript browser console? Choose 3 answers:
- A . View and change DOM the page.
- B . Display a report showing the performance of a page.
- C . Run code that is not related to page.
- D . view, change, and debug the JavaScript code of the page.
- E . View and change security cookies.
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
Which method would you use to convert an arraylike object into a true array in JavaScript?
- A . Array.from()
- B . Array.slice()
- C . Array.splice()
- D . Array.push()
Refer to the following code:
<html lang=”en”>
<body>
<divonclick = “console.log(‘Outer message’) ;”>
<button id =”myButton”>CLick me<button>
</div>
</body>
<script>
function displayMessage(ev) {
ev.stopPropagation();
console.log(‘Inner message.’);
}
const elem = document.getElementById(‘myButton’);
elem.addEventListener(‘click’, displayMessage);
</script>
</html>
What will the console show when the button is clicked?
- A . Outer message
- B . Outer messageInner message
- C . Inner messageOuter message
- D . Inner message
Given the requirement to refactor the code above to JavaScript class format, which class definition is correct?

A)

B)

C)

D)

- A . Option A
- B . Option B
- C . Option C
- D . Option D