JAVASCRIPT-DEVELOPER-I Exam Details

  • Exam Code
    :JAVASCRIPT-DEVELOPER-I
  • Exam Name
    :Salesforce Certified JavaScript Developer (JS-Dev-101)
  • Certification
    :Salesforce Certifications
  • Vendor
    :Salesforce
  • Total Questions
    :223 Q&As
  • Last Updated
    :Jul 04, 2026

Salesforce JAVASCRIPT-DEVELOPER-I Online Questions & Answers

  • Question 21:

    Given the following code:

    document.body.addEventListener(` click ', (event) => {

    if (/* CODE REPLACEMENT HERE */) {

    console.log(`button clicked!');

    )

    });

    Which replacement for the conditional statement on line 02 allows a developer to

    correctlydetermine that a button on page is clicked?

    A. Event.clicked
    B. e.nodeTarget ==this
    C. event.target.nodeName == `BUTTON'
    D. button.addEventListener(`click')

  • Question 22:

    Refer to the code below:

    const addBy = ?

    const addByEight =addBy(8);

    const sum = addBYEight(50);

    Which two functions can replace line 01 and return 58 to sum?

    Choose 2 answers

    A. const addBy = function(num1){ return function(num2){ return num1 + num2; }
    B. const addBy = function(num1){ return num1 + num2; }
    C. const addBy = (num1) => num1 + num2 ;
    D. const addBY = (num1) => (num2) => num1 + num2;

  • Question 23:

    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

    A. Integration
    B. Black box
    C. White box
    D. Mocking

  • Question 24:

    Which three browser specific APIs are available for developers to persist data between page loads? Choose 3 answers

    A. IIFEs
    B. indexedDB
    C. Global variables
    D. Cookies
    E. localStorage.

  • Question 25:

    Which function should a developer use to repeatedly execute code at a fixed interval ?

    A. setIntervel
    B. setTimeout
    C. setPeriod
    D. setInteria

  • Question 26:

    Given the code below:

    Which three code segments result in a correct conversion from number to string? Choose 3 answers

    A. let strValue = numValue. toString();
    B. let strValue = * * 4 numValue;
    C. let strValue = numValue.toText ();
    D. let scrValue = String(numValue);
    E. let strValue = (String)numValue;

  • Question 27:

    Refer to the following object.

    How can a developer access the fullName property for dog?

    A. Dog.fullName
    B. Dog.fullName ( )
    C. Dog, get, fullName
    D. Dog, function, fullName

  • Question 28:

    Given the code below:

    Function myFunction(){

    A =5;

    Var b =1;

    }

    myFunction();

    console.log(a);

    console.log(b);

    What is the expected output?

    A. Both lines 08 and 09 are executed, and the variables are outputted.
    B. Line 08 outputs the variable, but line 09 throws an error.
    C. Line 08 thrones an error, therefore line 09 is never executed.
    D. Both lines 08 and 09 are executed, but values outputted are undefined.

  • Question 29:

    A developer wants to leverage a module to print a price in pretty format, and has imported a method as shown below:

    Import printPrice from `/path/PricePrettyPrint.js';

    Based on the code, what mustbe true about the printPrice function of the PricePrettyPrint module for this import to work ?

    A. printPrice must be be a named export
    B. printPrice must be an all export
    C. printPrice must be the default export
    D. printPrice must be a multi exportc

  • Question 30:

    Given the JavaScript below:

    Which code should replace the placeholder comment on line 06 to hide accounts that do not match the search string?

    A. `None' : `block'
    B. `Visible : 'hidden'
    C. `Hidden, visible
    D. `Block' : `none'

Tips on How to Prepare for the Exams

Nowadays, the certification exams become more and more important and required by more and more enterprises when applying for a job. But how to prepare for the exam effectively? How to prepare for the exam in a short time with less efforts? How to get a ideal result and how to find the most reliable resources? Here on Vcedump.com, you will find all the answers. Vcedump.com provide not only Salesforce exam questions, answers and explanations but also complete assistance on your exam preparation and certification application. If you are confused on your JAVASCRIPT-DEVELOPER-I exam preparations and Salesforce certification application, do not hesitate to visit our Vcedump.com to find your solutions here.