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

    Which option is a core Node,js module?

    A. Path
    B. Ios
    C. Memory
    D. locate

  • Question 192:

    Refer to the code below:

    01 const server = require(`server');

    02 /* Insert code here */

    A developer imports a library that creates a web server.The imported library uses events and callbacks to start the servers

    Which code should be inserted at the line 03 to set up an event and start the web server ?

    A. Server.start ();
    B. server.on(` connect ' , ( port) => { console.log(`Listening on ' , port);})
    C. server()
    D. serve(( port) => (
    E. console.log( `Listening on ', port) ;

  • Question 193:

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

    A developer creates an object where its properties should be immutable and prevent properties from being added or modified.

    Which method should beused to execute this business requirement ?

    A. Object.const()
    B. Object.eval()
    C. Object.lock()
    D. Object.freeze()

  • Question 195:

    Given the code below:

    Which method can be used to provide a visual representation of the list of users and to allow sorting by the name or email attribute?

    A. console.group(usersList) ;
    B. console.table(usersList) ;
    C. console.info(usersList) ;
    D. console.groupCol lapsed(usersList) ;

  • Question 196:

    A developer wrote a fizzbuzzfunction that when passed in a number, returns the following:

    `Fizz' if the number is divisible by 3.

    `Buzz' if the number is divisible by 5.

    `Fizzbuzz' if the number is divisible by both 3 and 5.

    Empty string if the number is divisible by neither3 or 5.

    Which two test cases will properly test scenarios for the fizzbuzz function?

    Choose 2 answers

    A. let res = fizzbuzz(5); console.assert ( res === ` ' );
    B. let res = fizzbuzz(15); console.assert ( res === ` fizzbuzz ' )
    C. let res = fizzbuzz(Infinity); console.assert ( res === ` ' )
    D. let res = fizzbuzz(3); console.assert ( res === ` buzz ' )

  • Question 197:

    Refer to the following code:

    What is the output of line 11?

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

  • Question 198:

    A developer is setting up a Node,js server and is creating a script at the root of the source code, index,js, that will start the server when executed. The developer declares a variable that needs the folder location that the code executes from.

    Which global variable can be used in the script?

    A. window.location
    B. _filename
    C. _dirname
    D. this.path

  • Question 199:

    A developer creates a class that represents a blog post based on the requirement that a Post should have a body author and view count.

    The Code shown Below:

    ClassPost {

    // Insert code here

    This.body =body

    This.author = author;

    this.viewCount = viewCount;

    }

    }

    Which statement should be inserted in the placeholder on line 02 to allow for a variable to be set to a new instanceof a Post with the three attributes correctly populated?

    A. super (body, author, viewCount) {
    B. Function Post (body, author, viewCount) {
    C. constructor (body, author, viewCount) {
    D. constructor() {

  • Question 200:

    Refer to code below:

    Let a ='a';

    Let b;

    // b = a;

    console.log(b);

    What is displayed when the code executes?

    A. ReferenceError: b is not defined
    B. A
    C. Undefined
    D. Null

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.