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

    Refer to the code below:

    Const searchTest = `Yay! Salesforce is amazing!" ;

    Let result1 = searchText.search(/sales/i);

    Let result 21 = searchText.search(/sales/i);

    console.log(result1);

    console.log(result2);

    After running this code, which result is displayed on the console?

    A. Option A
    B. Option B
    C. Option C

  • Question 132:

    Refer to the following code:

    Which statement should be added to line 09 for the code to display 'The boat has a capacity of 10 people?

    A. super.size = size;
    B. ship.size size;
    C. super (size);
    D. this.size = size;

  • Question 133:

    CORRECT TEXT

    Given the requirement to refactor the code above to JavaScript class format, which class definition is correct?

    A. Option A
    B. Option B
    C. Option C
    D. Option D

  • Question 134:

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

    Universal Container(UC) just launched a new landing page, but users complain that the website is slow. A developer found some functions that cause this problem. To verify this, the developer decides to do everything and log the time each

    of these three suspicious functions consumes.

    console.time(`Performance');

    maybeAHeavyFunction();

    thisCouldTakeTooLong();

    orMaybeThisOne();

    console.endTime(`Performance');

    Which function can the developer use to obtain the time spent by every one of the three functions?

    A. console.timeLog()
    B. console.getTime()
    C. console.trace()
    D. console.timeStamp()

  • Question 136:

    Given the code below:

    Setcurrent URL ();

    console.log(`The current URL is: ` +url );

    functionsetCurrentUrl() {

    Url = window.location.href:

    What happens when the code executes?

    A. The url variable has local scope and line 02 throws an error.
    B. The url variable has global scope and line 02 executes correctly.
    C. The url variable has global scope and line 02 throws an error.
    D. The url variable has local scope and line 02 executes correctly.

  • Question 137:

    A developer is asked to fix some bugs reported by users. Todo that, the developer adds a breakpoint for debugging.

    Function Car (maxSpeed, color){

    This.maxspeed =masSpeed;

    This.color = color;

    Let carSpeed = document.getElementById(` CarSpeed');

    Debugger;

    Let fourWheels =new Car (carSpeed.value, `red');

    When the code execution stops at the breakpoint on line 06, which two types of information are available in the browser console ?

    Choose 2 answers:

    A. The values of the carSpeed and fourWheels variables
    B. A variable displaying the number of instances created for theCar Object.
    C. The style, event listeners and other attributes applied to the carSpeed DOM element
    D. The information stored in the window.localStorage property

  • Question 138:

    A developer receives a comment from the Tech Lead that the code given below has error:

    const monthName = `July';

    const year = 2019;

    if(year === 2019) {

    monthName= `June';

    }

    Which line edit should be made to make this code run?

    A. 01 let monthName ='July';
    B. 02 let year =2019;
    C. 02 const year = 2020;
    D. 03 if (year == 2019) {

  • Question 139:

    Considering the implications of 'use strict' on line 04, which three statements describe the execution of the code? Choose 3 answers

    A. z is equal to 3.14.
    B. 'use strict' is hoisted, so it has an effect on all lines.
    C. 'use strict' has an effect only on line 05.
    D. 'use strict' has an effectbetween line 04 and the end of the file.
    E. Line 05 throws an error.

  • Question 140:

    Given the expressions var1 and var2,what are two valid ways to return the concatenation of the two expressions and ensure it is string? Choose 2 answers

    A. var1 + var2
    B. var1.toString ( ) var2.toString ( )
    C. String (var1) .concat (var2)
    D. string.concat (var1 +var2)

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.