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

    Refer of the string below:

    Const str = `sa;esforce'=;

    Which two statement result in the word 'Sale'?

    Choose 2 answers

    A. str, substring (0,5) ;
    B. str, substr(0,5) ;
    C. str, substring(1,5);
    D. str, substr(1,5) ;

  • Question 122:

    A developer wants to define a function log to be used a few times on a single-file JavaScript script.

    01 // Line 1 replacement

    02 console.log('"LOG:', logInput);

    03 }

    Which two options can correctly replace line 01 and declare the function for use? Choose 2 answers

    A. function leg(logInput) {
    B. const log(loginInput) {
    C. const log = (logInput) => {
    D. function log = (logInput) {

  • Question 123:

    Refer to the following array:

    Let arr = [1, 2, 3, 4, 5];

    Which three options result in x evaluating as [1, 2]?

    Choose 3 answer

    A. let x = arr. slice (2);
    B. let x = arr. slice (0, 2);
    C. let x arr.filter((a) => (return a
    D. let x = arr.filter ((a) => 2 }) ;
    E. let x =arr.splice(0, 2);

  • Question 124:

    Given the following code:

    Let x =null;

    console.log(typeof x);

    What is the output of the line 02?

    A. "Null"
    B. "X"
    C. "Object"
    D. "undefined"

  • Question 125:

    Refer to the code below:

    Const myFunction = arr => {

    Return arr.reduce((result, current) =>{

    Return result = current;

    }, 10};

    }

    What is the output of this function when called with an empty array ?

    A. Returns 0
    B. Throws an error
    C. Returns 10
    D. Returns NaN

  • Question 126:

    Refer to the code below:

    Let textValue = '1984';

    Which code assignment shows a correct way to convert this string to an integer?

    A. let numberValue = Number(textValue);
    B. Let numberValue = (Number)textValue;
    C. Let numberValue = textValue.toInteger();
    D. Let numberValue = Integer(textValue);

  • Question 127:

    A team that works on a big project uses npm to deal with projects dependencies.

    A developer added a dependency does not get downloaded when they executenpminstall.

    Which two reasons could be possible explanations for this?

    Choose 2 answers

    A. The developer missed the option --add when adding the dependency.
    B. The developer added the dependency as a dev dependency, and NODE_ENV Is set to production.
    C. The developer missed the option --save when adding the dependency.
    D. The developer added the dependency as a dev dependency, and NODE_ENV is set to production.

  • Question 128:

    Given HTML below:

    Universal Container

    Applied Shipping

    Burlington Textiles

    Which statement adds the priority = account CSS class to the universal Containers row?

    A. Document .querySelector(`#row-uc').classes.push(`priority-account');
    B. Document .queryElementById(`row-uc').addclass(`priority-account');
    C. Document .querySelector(`#row-uc').classList.add(`priority-account');
    D. Document .querySelectorALL(`#row-uc').classList.add(`priority-account');

  • Question 129:

    Which code statement below correctly persists an objects in local Storage ?

    A. const setLocalStorage = (storageKey, jsObject) => { window.localStorage.setItem(storageKey, JSON.stringify(jsObject)); }
    B. const setLocalStorage = ( jsObject) => {window.localStorage.connectObject(jsObject));}
    C. const setLocalStorage = ( jsObject) => {window.localStorage.setItem(jsObject);}
    D. const setLocalStorage = (storageKey, jsObject) => { window.localStorage.persist(storageKey, jsObject); }

  • Question 130:

    A developer has two ways to write a function:

    Option A:

    function Monster(){

    this.growl = ()=>{

    console.log('Grr!');

    }

    }

    Option B:

    function Monster(){};

    Monster.prototype.growl = ()=>{

    console.log('Grr!');

    }

    After deciding on an option, the developercreates 1000 monster objects.

    How many growl methods are created with Option A and Option B?

    A. 1000 for Option A, 1 for Option B
    B. 1 methods for both
    C. 1000 for both
    D. 1 for Option A, 1000 for Option B

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.