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

    Given the following code:

    Counter = 0;

    const logCounter = () => {

    console.log(counter);

    );

    logCounter();

    setTimeout(logCOunter, 1100);

    setInterval(() => {

    Counter++

    logCounter();

    }, 1000);

    What is logged by the first four log statements?

    A. 0 0 1 2
    B. 0 1 2 3
    C. 0 1 1 2
    D. 0 1 2 2

  • Question 32:

    Which code statement below correctly persists an objects inlocal Storage ?

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

  • Question 33:

    Refer to the code snippet below:

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

    For (let i =0; i < array.length; i++)

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

    array.splice(i, 1);

    }

    }

    What is the value of array after the code executes?

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

  • Question 34:

    A developer at Universal Containers creates a new landing page based on HTML, CSS, and JavaScript TO ensure that visitors have a goodexperience, a script named personaliseContext needs to be executed when the webpage is fully loaded (HTML content and all related files ), in

    order to do some custom initialization.

    Which statement should be used to call personalizeWebsiteContent based onthe above business requirement?

    A. document.addEventListener(`'onDOMContextLoaded', personalizeWebsiteContext);
    B. window.addEventListener(`load',personalizeWebsiteContext);
    C. window.addEventListener(`onload', personalizeWebsiteContext);
    D. Document.addEventListener(``'DOMContextLoaded' , personalizeWebsiteContext);

  • Question 35:

    A developer wants to use a module called DataPrettyPrint. This module exports one default function called printDate (). How can a developer import and use the printDate() function?

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

  • Question 36:

    Given the code below:

    01 function GameConsole (name) {

    02 this.name = name;

    03 }

    05 GameConsole.prototype.load = function(gamename) {

    06 console.log( ` $(this.name) is loading agame : $(gamename) ...`);

    07 )

    08 function Console 16 Bit (name) {

    09 GameConsole.call(this, name) ;

    10 }

    11 Console16bit.prototype = Object.create ( GameConsole.prototype) ;

    12 //insert code here

    13 console.log( ` $(this.name) is loading a cartridge game :$(gamename) ...`);

    14 }

    15 const console16bit = new Console16bit(` SNEGeneziz ');

    16 console16bit.load(` Super Nonic 3x Force ');

    What should a developer insert at line 15 to output the following message using the method ?

    > SNEGeneziz is loading a cartridgegame: Super Monic 3x Force . . .

    A. Console16bit.prototype.load(gamename) = function() {
    B. Console16bit.prototype.load = function(gamename) {
    C. Console16bit = Object.create(GameConsole.prototype).load = function (gamename) {
    D. Console16bit.prototype.load(gamename) {

  • Question 37:

    Developer uses the code below to format a date.

    After executing, what is the value of formatted Date?

    A. May 10, 2020
    B. June 10, 2020
    C. October 05, 2020
    D. November 05, 2020

  • Question 38:

    Which three options show valid methods for creating a fat arrow function? Choose 3 answers

    A. x => ( console.log(` executed ') ; )
    B. [ ] => ( console.log(` executed ') ;)
    C. ( ) => ( console.log(` executed ') ;)
    D. X,y,z => ( console.log(` executed ') ;)
    E. (x,y,z) => ( console.log(` executed ') ;)

  • Question 39:

    Given code below:

    setTimeout (() => (

    console.log(1);

    ). 0);

    console.log(2);

    New Promise ((resolve, reject )) = > (

    setTimeout(() => (

    reject(console.log(3));

    ). 1000);

    )).catch(() => (

    console.log(4);

    ));

    console.log(5);

    What is logged to the console?

    A. 2 1 4 3 5
    B. 2 5 13 4
    C. 1 2 4 3 5
    D. 1 2 5 3 4

  • Question 40:

    A developer wants to iterate through an array of objects and count the objects and count the objects whose property value, name, starts with the letter N. Const arrObj = [{"name" : "Zach"} , {"name" : "Kate"},{"name" : "Alise"},{"name" : "Bob"},

    {"name" : "Natham"},{"name" : "nathaniel"}

    Refer to the code snippet below:

    01 arrObj.reduce(( acc, curr) => {

    02 //missing line 02

    02 //missing line 03

    04 ).0);

    Which missing lines 02 and 03 return the correct count?

    A. Const sum = curr.startsWith(`N') ? 1: 0; Return acc +sum
    B. Const sum = curr.name.startsWith(`N') ? 1: 0; Return acc +sum
    C. Const sum = curr.startsWIth(`N') ? 1: 0; Return curr+ sum
    D. Constsum = curr.name.startsWIth(`N') ? 1: 0; Return curr+ sum

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.