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

    Refer to the following array:

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

    Which three options result in x evaluating as [3, 4, 5] ?

    Choose 3 answers.

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

  • Question 112:

    A developer has a formatName function that takes two arguments, firstName and lastName and returns a string. They want to schedule the function to run once after five seconds. What is the correct syntax to schedule this function?

    A. setTimeout(formatName(), 5000, "John", "BDoe");
    B. setTimeout (formatName('John', `'Doe'), 5000);
    C. setTimout(() => { formatName("John', 'Doe') }, 5000);
    D. setTimeout ('formatName', 5000, 'John", "Doe');

  • Question 113:

    CORRECT TEXT

    Refer the code below.

    x=3.14;

    function myfunction() {

    "use strict";

    y=x;

    }

    z=x;

    myFunction();

    A. Z is equal to 3.14
    B. Use strict has effect only on line 5.
    C. Line 5 throws an error
    D. PlaceHolder

  • Question 114:

    Refer to the code below:

    Let foodMenu1 = [`pizza', `burger', `French fries'];

    Let finalMenu = foodMenu1;

    finalMenu.push(`Garlic bread');

    What is the value of foodMenu1 after the code executes?

    A. [ `pizza','Burger', `French fires', `Garlic bread']
    B. [ `pizza','Burger', `French fires']
    C. [ `Garlic bread' , `pizza','Burger', `French fires' ]
    D. [ `Garlic bread']

  • Question 115:

    Refer to the HTML below:

    Which JavaScript statement results in changing " The Lion."?

    A. document.querySelectorAll(`$main $TONY').innerHTML = '" The Lion
    B. document.querySelector(`$main li:second-child').innerHTML = "The Lion ';
    C. document.querySelector(`$main li.Tony').innerHTML = '" The Lion ';
    D. document.querySelector(`$main li:nth-child(2)'),innerHTML = " The Lion. ';

  • Question 116:

    A developer creates a simple webpage with an input field. When auser enters text in the input field and clicks the button, the actual value of the field must be displayed in the console.

    Here is the HTML file content:

    The developer wrote the javascript code below:

    Const button = document.querySelector(`button');

    button.addEvenListener(`click', () => (

    Const input = document.querySelector(`input');

    console.log(input.getAttribute(`value'));

    When the user clicks the button, the output is always "Hello".

    What needs to be done make this code work as expected?

    A. Replace line 04 with console.log(input .value);
    B. Replace line 03 with const input = document.getElementByName(`input');
    C. Replace line 02 with button.addEventListener("onclick", function() {
    D. Replace line 02 with button.addCallback("click", function() {

  • Question 117:

    Refer to the code below:

    const car = {

    price:100,

    getPrice:function(){

    return this.price;

    }

    };

    const customCar = Object.create(car);

    customCar.price = 70;

    delete customCar.price;const result = customCar.getPrice();

    Whatis the value of result after the code executes?

    A. 100
    B. undefined
    C. null
    D. 70

  • Question 118:

    Refer to the code below:

    Let car1 = new Promise((_ , reject) =>

    setTimeout(reject, 2000, "car 1 crashed in" =>

    Let car2 =new Promise(resolve => setTimeout(resolve, 1500, "car 2 completed")

    Let car3 =new Promise(resolve =>setTimeout(resolve, 3000, "car 3 completed")

    Promise.race(( car1, car2, car3))

    .then (value => (

    Let result = `$(value) the race.';)}

    .catch(arr => {

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

    });

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

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

  • Question 119:

    A developer wants to use a module named universalContainersLib and then call functions from it.

    How should a developer import every function from the module and then call the functions foo and bar?

    A. import * from '/path/universalContainersLib.js'; universalContainersLib. foo ()7 universalContainersLib.bar ();
    B. import {foo,bar} from '/path/universalCcontainersLib.js'; foo(): bar()?
    C. import all from '/path/universalContainersLib.js'; universalContainersLib.foo(); universalContainersLib.bar ();
    D. import * as lib from '/path/universalContainersLib.js'; lib.foo(); lib. bar ();

  • Question 120:

    A developer creates a generic function to log custommessages in the console. To do this, the function below is implemented.

    01 function logStatus(status){

    02 console./*Answer goes here*/{`Item status is: %s', status};

    03 }

    Which three console logging methods allow the use of string substitution in line 02?

    A. Assert
    B. Log
    C. Message
    D. Info
    E. Error

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.