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 71:

    A developer needs to test this function:

    01const sum3 = (arr) => (

    02if (!arr.length) return 0,

    03if (arr.length === 1) return arr[0],

    04if (arr.length === 2) return arr[0]+ arr[1],

    05 return arr[0] + arr[1] + arr[2],

    06 );

    Which two assert statements are valid tests for the function?

    Choose 2 answers

    A. console.assert(sum3(1, `2')) == 12);
    B. console.assert(sum3(0)) == 0);
    C. console.assert(sum3(-3, 2 )) == -1);
    D. console.assert(sum3(`hello', 2, 3, 4)) === NaN);

  • Question 72:

    A developer has the following array of hourlywages:

    Let arr = (8, 5, 9, 75, 11, 25, 7, 75, , 13, 25);

    For workers making less than $10 an hour rate should be multiple by 1.25 and returned in a new array.

    How should the developer implement the request?

    A. let arrl = arr.filter((val) => val < 10).map((num) -> num = 1.25);
    B. let arrl = arr .rr.acArray ((val) => ( val < 10 )) ,map((num) => { num * 1.25 ));
    C. let arrl = arr-map((num) => { return ran * 1.25 }).filter((val) -> { return val < 10));
    D. let arrl = arr.filterBy((val) => val < 10 ).aapBy num = ..25 );

  • Question 73:

    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

  • Question 74:

    A developer writes the code below to return a message to a user attempting to register a new username. If the username is available, a variable named nag is declared and assigned a value on line 03.

    What is the value of msg when getAvailableabilityMessage ("newUserName") is executed and get Availability ("newUserName") returns true?

    A. "msg is not defined"
    B. "newUserName"
    C. "User-name available"
    D. undefined

  • Question 75:

    A developer at Universal Containers is creating their new landing page based on HTML, CSS, and JavaScript.

    To ensure that visitors have a good experience, a script named personalizeWebsiteContent needs to be executed when the webpage is fully loaded (HTML content and all related files), in order to do some custom initializations.

    Which implementation should be used to call Fe:s:-a;::eHec5;te::.-.ter.: based on the business requirement above?

    A. Add a listener to the window object to handle the DOMContentLoaded event
    B. Add a handler to the personalizeWebsiteContent script to handle the load event
    C. Add a listener to the window object to handle the lead event
    D. Add a handler to the personalizeWebsiteContent script to handle the DOMContentLoaded event

  • Question 76:

    Teams at Universal Containers (UC) work on multiple JavaScript projects at the same time.

    UC is thinking about reusability and how each team can benefit from the work of others.

    Going open-source or public is not an option at this time.

    Which option is available to UC with npm?

    A. Private packages can be scored, andscopes can be associated to a private registries.
    B. Private registries are not supported by npm, but packages can be installed via URL.
    C. Private packages are not supported, but they can use another package manager like yarn.
    D. Private registries are not supported by npm, but packages can be installed via git.

  • Question 77:

    Refer to the following code:

What will the console show when the button is clicked?

A. Outer message
B. Outer message Inner message
C. Inner message Outer message
D. Inner message

  • Question 78:

    Refer to the code below:

    let timeFunction =() => {

    console.log(`Timer called.");

    };

    let timerId = setTimeout (timedFunction, 1000);

    Which statement allows a developer to cancel the scheduled timed function?

    A. removeTimeout(timedFunction);
    B. removeTimeout(timerId);
    C. clearTimeout(timerId);
    D. clearTimeout(timedFunction);

  • Question 79:

    Refer to the code below:

    function changeValue(param) {

    Param =5;

    }

    Let a =10;

    Let b =5;

    changeValue(b);

    Const result = a+ " - "+ b;

    What is the value of result when code executes?

    A. 10 -10
    B. 5 -5
    C. 5 - 10
    D. 10 - 5

  • Question 80:

    Refer to the following code:

    What isthe value of output on line 11?

    A. [1, 2]
    B. [`'foo'', `'bar'']
    C. [`'foo'':1, `'bar'':2'']
    D. An error will occur due to the incorrect usage of the for...of statement on line 07.

  • 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.