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

    Which two console logs output NaN? Choose 2 answers | |

    A. console.log(10 / Number('5) ) ;
    B. console.log(parseInt ' ("two')) ;
    C. console.log(10 / 0);
    D. console.loeg(10 / 'five');

  • Question 42:

    The developer has a function that prints "Hello" to an input name.To test this, thedeveloper created a function that returns "World". However the following snippet does not print " Hello World".

    What can the developer do to change the code to print "Hello World" ?

    A. Change line 7 to ) () ;
    B. Change line 2 to console.log(`Hello' , name() );
    C. Change line 9 to sayHello(world) ();
    D. Change line 5 to function world ( ) {

  • Question 43:

    Refer to the code below:

    Function changeValue(obj) {

    Obj.value =obj.value/2;

    }

    Const objA = (value: 10);

    Const objB = objA;

    changeValue(objB);

    Const result = objA.value;

    What is the value of result after the code executes?

    A. 10
    B. Nan
    C. 5
    D. Undefined

  • Question 44:

    Refer to the code below

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

    which two statements results in the array [1,2,3,4,5]?

    choose 2 answer

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

  • Question 45:

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

    Function factorial(number) {

    Return number + factorial(number -1);

    }

    factorial(3);

    What isthe result of executing line 04?

    B. 6
    C. -Infinity
    D. RuntimeError

  • Question 46:

    A developer initiates a server with the file server,js and adds dependencies in the source codes package,json that are required to run the server. Which command should the developer run to start the server locally?

    A. start server,js
    B. npm start server,js
    C. npm start
    D. node start

  • Question 47:

    Refer to the code below:

    for(let number =2 ; number <= 5 ; number += 1 ) {

    // insert code statement here

    }

    Thedeveloper needs to insert a code statement in the location shown. The code statement has these requirements:

    1.

    Does require an import

    2.

    Logs an error when the boolean statement evaluates to false

    3.

    Works in both the browser and Node.js Which meet the requirements?

    A. assert (number % 2 === 0);
    B. console.error(number % 2 === 0);
    C. console.debug(number % 2 === 0);
    D. console.assert(number % 2 === 0);

  • Question 48:

    Refer to code below:

    console.log(0);

    setTimeout(() => (

    console.log(1);

    });

    console.log(2);

    setTimeout(() => {

    console.log(3);

    ), 0);

    console.log(4);

    In which sequence will thenumbers be logged?

    A. 01234
    B. 02431
    C. 02413
    D. 13024

  • Question 49:

    A developer is working on an ecommerce website where the delivery date is dynamically calculated based on the current day. The code line below is responsible for this calculation.

    Const deliveryDate = new Date ();

    Due to changes in the business requirements, the delivery date must now be today's date + 9 days.

    Which code meets thisnew requirement?

    A. deliveryDate.setDate(( new Date ( )).getDate () +9);
    B. deliveryDate.setDate( Date.current () + 9);
    C. deliveryDate.date = new Date(+9) ;
    D. deliveryDate.date = Date.current () + 9;

  • Question 50:

    Refer to the string below:

    const str = 'Salesforce';

    Which two statements result in the word 'Sales'?

    Choose 2 answers

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

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.