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

    Given the following code: Let x =(`15' + 10)*2;

    What is the value of a?

    A. 3020
    B. 1520
    C. 50
    D. 35

  • Question 62:

    Refer to HTML below:

    This card is smaller.

    The width and height of this card is determined by its contents.

    Which expression outputs the screen widthof the element with the ID card-01?

    A. document.getElementById(` card-01 ').getBoundingClientRest().width
    B. document.getElementById(` card-01 ').style.width
    C. document.getElementById(` card-01 ').width
    D. document.getElementById(` card-01 ').innerHTML.lenght*e

  • Question 63:

    Refer to the code below:

    01 let car1 = new promise((_, reject) =>

    02 setTimeout(reject, 2000, "Car 1 crashed in"));

    03 let car2 = new Promise(resolve => setTimeout(resolve, 1500, "Car 2

    completed"));

    04 let car3 = new Promise(resolve => setTimeout (resolve, 3000, "Car 3

    Completed"));

    05 Promise.race([car1, car2, car3])

    06 .then(value => (

    07 let result = $(value) the race. `;

    08 ))

    09 .catch( arr => (

    10 console.log("Race is cancelled.", err);

    11 ));

    What is the value of result when Promise.race executes?

    A. Car 3 completed the race.
    B. Car 1 crashed in the race.
    C. Car 2 completed the race.
    D. Race is cancelled.

  • Question 64:

    Which statement accurately describes the behaviour of the async/ await keyworks ?

    A. The associated class contains some asynchronous functions.
    B. The associated function will always return apromise
    C. The associated function can only be called via asynchronous methods
    D. The associated sometimes returns a promise.

  • Question 65:

    Given the following code: let x = null; console.log(typeof x); What is the output?

    A. "object"
    B. "undefined"
    C. "null"
    D. "x"

  • Question 66:

    Refer to the code snippet:

    Function getAvailabilityMessage(item) {

    If (getAvailability(item)){

    Var msg ="Username available";

    }

    Return msg;

    }

    A developer writes this code to return a message to user attempting to register a new username. If the username is available, variable.

    What is the return value of msg hen getAvailabilityMessage ("newUserName" ) is

    executed and getAvailability("newUserName") returns false?

    A. "Username available"
    B. "newUserName"
    C. "Msg is not defined"
    D. undefined

  • Question 67:

    Given the HTML below:

    Which statement adds the priority-account CSS class to the Universal Containers row?

    A. document. querySelector (#row-uc').classes-push('priority-account');
    B. document. getElementByid('row-uc').addClass('priority-account*);
    C. document. querySelectorAll('#row-uc') -classList.add("priority-accour');
    D. document. queryselector('#row-uc').ClassList.add('priority-account');

  • Question 68:

    Refer to the code below:

    new Promise((resolve, reject) => {

    const fraction = Math.random();

    if( fraction >0.5) reject("fraction > 0.5, " + fraction);

    resolve(fraction);

    })

    .then(() =>console.log("resolved"))

    .catch((error) => console.error(error))

    .finally(() => console.log(" when am I called?"));

    When does Promise.finally on line 08 get called?

    A. When rejected
    B. When resolved and settled
    C. When resolved
    D. When resolved or rejected

  • Question 69:

    Refer to the code below:

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

    Which two statements result in the array [1, 2, 3, 4, 5] ?

    Choose 2 answers

    A. [ ]. Concat.apply ([ ], inArray);
    B. []. Concat (... inArray);
    C. [ ]. concat.apply(inArray, [ ]);
    D. [ ]. concat ( [ ....inArray ] );

  • Question 70:

    Refer to following code block:

    Let array = [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11,];

    Let output =0;

    For (let num of array){

    if (output >0){

    Break;

    }

    if(num % 2 == 0){

    Continue;

    }

    Output +=num;

    What is the value of output after the code executes?

    A. 16
    B. 36
    C. 11
    D. 25

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.