Exam Details

  • Exam Code
    :JAVASCRIPT-DEVELOPER-I
  • Exam Name
    :Salesforce Certified JavaScript Developer I
  • Certification
    :Salesforce Certifications
  • Vendor
    :Salesforce
  • Total Questions
    :223 Q&As
  • Last Updated
    :Mar 28, 2025

Salesforce Salesforce Certifications JAVASCRIPT-DEVELOPER-I Questions & Answers

  • Question 51:

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

    A. "object"

    B. "undefined"

    C. "null"

    D. "x"

  • Question 52:

    Refer to the code snippet below:

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

    For (let i =0; i

    if (array[i] === 4) {

    array.splice(i, 1);

    }

    }

    What is the value of the array after the code executes?

    A. [1, 2, 3, 4, 5, 4, 4]

    B. [1, 2, 3, 4, 4, 5, 4]

    C. [1, 2, 3, 4, 5, 4]

    D. [1, 2, 3, 5]

  • Question 53:

    What is the result of the code block?

    A. The console logs only `flag'.

    B. The console logs `flag' and another flag.

    C. An error is thrown.

    D. The console logs `flag' and then an error is thrown.

  • Question 54:

    Refer to the code:

    Given the code above, which three properties are set pet1? Choose 3 answers:

    A. Name

    B. canTalk

    C. Type

    D. Owner

    E. Size

  • Question 55:

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

    Refer to following code:

    class Vehicle {

    constructor(plate) {

    This.plate =plate;

    }

    }

    Class Truck extends Vehicle {

    constructor(plate, weight) {

    //Missing code

    This.weight = weight;

    }

    displayWeight() {

    console.log(`The truck ${this.plate} has a weight of ${this.weight}lb.');}}

    Let myTruck = new Truck(`123AB', 5000);

    myTruck.displayWeight();

    Which statement should be added to line 09 for the code to display `The truck 123AB has a weight of 5000lb.'?

    A. Super.plate =plate;

    B. super(plate);

    C. This.plate =plate;

    D. Vehicle.plate = plate;

  • Question 57:

    A developer writes the code below to calculate the factorial of a given number

    function sum(number){

    return number * sum(number-1);

    }

    sum(3);

    what is the result of executing the code.

    A. 0

    B. 6

    C. Error

    D. -Infinity

  • Question 58:

    A developer wants to create an object from a function in the browser using the code below.

    What happens due to the lack of the mm keyword on line 02?

    A. window.name is assigned to 'hello' and the variable = remains undefined.

    B. window.m Is assigned the correct object.

    C. The m variable is assigned the correct object but this.name remains undefined.

    D. The m variable is assigned the correct object.

  • Question 59:

    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<2));

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

    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

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.