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

    A developer is wondering whether to use, Promise.then or Promise.catch, especially when a Promise throws an error?

    Which two promises are rejected?

    Which 2 are correct?

    A. Promise.reject(`cool error here').then(error => console.error(error));
    B. Promise.reject(`cool error here').catch(error => console.error(error));
    C. New Promise((resolve, reject) => (throw `cool error here'}).catch(error => console.error(error)) ;
    D. New Promise(() => (throw `coolerror here'}).then(null, error => console.error(error)));

  • Question 102:

    Which option is true about the strict mode in imported modules?

    A. Add the statement use non-strict, before any other statements in the module to enable not-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 enable not- strict mode.

  • Question 103:

    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 developer creates 1000 monster objects.

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

    A. 1 growl method is created for Option A.1000 growl methods are created for Option B.
    B. 1000 growl method is created for Option A. 1 growl methods are created for Option B.
    C. 1000 growl methods are created regardless of which option is used.
    D. 1 growl method is created regardless of which option is used.

  • Question 104:

    Considering type coercion, what does the following expression evaluate to? True + `13' + NaN

    A. ` 113Nan '
    B. 14
    C. ` true13 '
    D. ` true13NaN '

  • Question 105:

    Which statement phrases successfully?

    A. JSON.parse ( ` foo ' );
    B. JSON.parse ( " foo " );
    C. JSON.parse( " ` foo ' " );
    D. JSON.parse(` " foo " ');

  • Question 106:

    In the browser, the window object is often used to assign variables that require the broadest scope in an application Node.js application does not have access to the window object by default.

    Which two methods are used to address this ?

    Choose 2 answers

    A. Use the document object instead of the window object.
    B. Assign variables to the global object.
    C. Create a new window object in the root file.
    D. Assign variables to module.exports and require them as needed.

  • Question 107:

    Refer to the following code block: What is the console output?

    A. > Better student Jackie got 70% on test.
    B. > Jackie got 70% on test.
    C. > Uncaught Reference Error
    D. > Better student Jackie got 100% on test.

  • Question 108:

    Given the code below:

    const delay = sync delay => {

    Return new Promise((resolve, reject) => {

    setTimeout (resolve, delay);});};

    const callDelay =async () =>{

    const yup =await delay(1000);

    console.log(1);

    What is logged to the console?

    A. 1 2 3
    B. 1 3 2
    C. 2 1 3
    D. 2 3 1

  • Question 109:

    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

    A. `Update' , ( recordId : `123abc' (
    B. `Update' , `123abc'
    C. { type : `update', recordId : `123abc' }
    D. `Update' , { Details : { recordId : `123abc' } }

  • Question 110:

    A test has a dependency on database. query. During the test, the dependency is replaced with an object called database with the method, Calculator query, that returns an array. The developer does not need to verify how many times the method has been called.

    Which two test approaches describe the requirement? Choose 2 answers

    A. White box
    B. Stubbing
    C. Black box
    D. Substitution

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.