Salesforce certification practice

JAVASCRIPT-DEVELOPER-I Practice Questions

Try 10 free JAVASCRIPT-DEVELOPER-I exam-style questions for Salesforce Javascript Developer I certification exam. Check each answer and review the explanation and source references.

Exam code
JAVASCRIPT-DEVELOPER-I
Provider
Salesforce
Free questions
10
Full set
219 questions
Last update check

Domain Server-Side JavaScript

A developer wants to set up a secure web server withNode.js. The developer creates a directory locally called app-server, and the first file is app-server/index.js Without using any third-party libraries, what should the developer add to index.js to create the secure web server?
Answer options

Domain Objects, Functions, and Classes

Given the following code: Salesforce Javascript Developer I question What will be the first four numbers logged?
Answer options

Domain Variables, Types, and Collections

Given two expressions var1 and var2. What are two valid ways to return the logical AND of the two expressions and ensure it is data type Boolean ? Choose 2 answers:
Answer options

Domain Testing

A test has a dependency on database.query. During the test the dependency is replaced with an object called database with the method, query, that returns an array. The developer needs to verify how many times the method was called and the arguments used each time. Which two test approaches describe the requirement? Choose 2 answers
Answer options

Domain Objects, Functions, and Classes

Refer to code below: function Person() { this.firstName = ’John’; } Person.prototype ={ Job: x => ‘Developer’ }; const myFather = new Person(); const result=myFather.firstName + ‘ ‘ + myFather.job(); What is the value of the result after line 10 executes?
Answer options

Domain Objects, Functions, and Classes

A developer has an ErrorHandler module that contains multiple functions. What kind of export should be leveraged so that multiple functions can be used?
Answer options

Domain Objects, Functions, and Classes

Refer to the code below: Salesforce Javascript Developer I question What is the output of this function when called with an empty array?
Answer options

Domain Browser and Events

Refer to the code below: const event = new CustomEvent( //Missing Code ); obj.dispatchEvent(event); A developer needs to dispatch a custom event called update to send information about recordId. Which two options could a developer insert at the placeholder in line 02 to achieve this? Choose 2 answers
Answer options

Domain Variables, Types, and Collections

Refer to the code below: Let foodMenu1 = [‘pizza’, ‘burger’, ‘French fries’]; Let finalMenu = foodMenu1; finalMenu.push(‘Garlic bread’); What is the value of foodMenu1 after the code executes?
Answer options

Domain Debugging and Error Handling

Refer the code below. x=3.14; function myfunction() { "use strict"; y=x; } z=x; myFunction();
Question 1 of 10

Exam domains

What the JAVASCRIPT-DEVELOPER-I practice set covers

Every question in this set is mapped to one of 7 exam domains. Check the official exam outline for the current domain weights.

Variables, Types, and Collections

2 of the 10 free questions

Objects, Functions, and Classes

4 of the 10 free questions

Browser and Events

1 of the 10 free questions

Debugging and Error Handling

1 of the 10 free questions

Asynchronous Programming

Server-Side JavaScript

1 of the 10 free questions

Testing

1 of the 10 free questions

Source context

How this practice set is maintained

Maintained by the CertMage content team, this page loads questions from the exam dataset connected to its preparation resource. When an answer includes a supporting reference, it is shown with that answer so you can review the underlying vendor documentation.

Certification objectives, interfaces, and vendor services can change. Verify important details against the provider's current exam guide and documentation before your exam.

Scroll to Top