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

    A developer has the function, shown below, that is called when a page loads.

    function onload() {

    console.log("Page has loaded!");

    }

    Where can the developer see the log statement after loading the page in the browser?

    A. Terminal running the web server.
    B. Browser performance toots
    C. Browser javaScript console
    D. On the webpage.

  • Question 142:

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

    Function Monster() { this.name = `hello' };

    Const z = Monster();

    What happens due tolack of the new keyword on line 02?

    A. The z variable is assigned the correct object.
    B. The z variable is assigned the correct object but this.name remains undefined.
    C. Window.name is assigned to `hello' and the variable z remains undefined.
    D. Window.mis assigned the correct object.

  • Question 143:

    Which statement can a developer apply to increment the browser's navigation history without a page refresh?

    A. window.history.pushState(newStateObject);
    B. window.history.pushStare(newStateObject, ' ', null);
    C. window.history.replaceState(newStateObject,' ', null);
    D. window.history.state.push(newStateObject);

  • Question 144:

    Refer to the string below.

    Const str='Salesforce';

    Which two statementsresults in the word 'Sales'?

    A. Str.substring(0,5);
    B. Str.substr(0,5);
    C. PlaceHolder
    D. PlaceHolder

  • Question 145:

    Refer to code below:

    function Person() {

    this.firstName = 'John';

    }

    Person.prototype ={

    Job: x => `Developer'

    };

    const myFather = new Person();

    const result=myFather.firstName + ` ` + myFather.job();

    What is the value of the result after line 10 executes?

    A. Error: myFather.job is not a function
    B. Undefined Developer
    C. John undefined
    D. John Developer

  • Question 146:

    A developer wrote the following code:

    01 let X = object.value; 03 try { 04 handleObjectValue(X); 05 } catch (error) { 06 handleError(error); 07 }

    The developer has agetNextValue function to execute after handleObjectValue(), but does not want to execute getNextValue() if an error occurs.

    How can the developer change the code to ensure this behavior?

    A. 03 try{ 04 handleObjectValue(x); 05 } catch(error){ 06handleError(error); 07 } then { 08 getNextValue(); 09 }
    B. 03 try{ 04 handleObjectValue(x); 05 } catch(error){ 06 handleError(error); 07 } finally { 08 getNextValue(); 10 }
    C. 03 try{ 04 handleObjectValue(x); 05 } catch(error){ 06 handleError(error); 07 } 08 getNextValue();
    D. 03 try { 04 handleObjectValue(x) 05 ........................

  • Question 147:

    There is a new requirement for a developer to implement a currPrice method that will return the current price of the item or sales..

    What is the output when executing the code above

    A. 50 Uncaught TypeError: saleItem,desrcription is not a function
    B. 50
    C. 50
    D. 50 Uncaught ReferenceError:this,discount is undefined

  • Question 148:

    A developer implements and calls the following code when an application state change occurs:

    Const onStateChange =innerPageState) => {

    window.history.pushState(newPageState,` ', null);

    }

    If the back button is clicked after this method is executed, what can a developer expect?

    A. A navigate event is fired with a state property that details the previous application state.
    B. The page is navigated away from and the previous page in the browser's history is loaded.
    C. The page reloads and all Javascript is reinitialized.
    D. A popstate event is fired with a state property that details the application's last state.

  • Question 149:

    Refer to the following code:

    Let obj ={

    Foo: 1,

    Bar: 2

    }

    Let output=[],

    for(let something in obj{

    output.push(something);

    }

    console.log(output);

    What is the output line 11?

    A. [1,2]
    B. ["bar","foo"]
    C. ["foo","bar"]
    D. ["foo:1","bar:2"]

  • Question 150:

    A developer has code that calculates a restaurant bill, but generates incorrect answers while testing the code:

    function calculateBill ( items ) {

    let total = 0;

    total += findSubTotal(items);

    total += addTax(total);

    total += addTip(total);

    return total;

    }

    Which option allows the developer to step into each function execution within calculateBill?

    A. Using the debugger commandon line 05.
    B. Using the debugger command on line 03
    C. Calling the console.trace (total) method on line 03.
    D. Wrapping findSubtotal in a console.log() method.

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.