View Mode
Q: 11
A developer wants to use a module called DataPrettyPrint. This module exports one default functioncalled printDate (). How can a developer import and use the printDate() function? A) Salesforce Javascript Developer I question B) Salesforce Javascript Developer I question C) Salesforce Javascript Developer I question D) Salesforce Javascript Developer I question
Options
Q: 12
A developer has a formatName function that takes two arguments, firstName and lastName and returns a string. They want to schedule the function to run once after five seconds. What is the correct syntax toschedule this function?
Options
Q: 13
Refer the code below. x=3.14; function myfunction() { "use strict"; y=x; } z=x; myFunction();
Your Answer
Q: 14
Refer to the code below: Const myFunction = arr => { Return arr.reduce((result, current) =>{ Return result = current; }, 10}; } What is the output of this function when called with an empty array ?
Options
Q: 15
At Universal Containers, every team has its own way of copyingJavaScript objects. The code snippet shows an Implementation from one team: Salesforce Javascript Developer I question What is the output of the code execution?
Options
Q: 16
Referto the code below: new Promise((resolve, reject) => { const fraction = Math.random(); if( fraction >0.5) reject("fraction > 0.5, " + fraction); resolve(fraction); }) .then(() =>console.log("resolved")) .catch((error) => console.error(error)) .finally(() =>console.log(" when am I called?")); Salesforce Javascript Developer I question When does Promise.finally on line 08 get called?
Options
Q: 17
Refer to the string below. Const str=’Salesforce’; Which two statementsresults in the word 'Sales'?
Your Answer
Q: 18
A developer creates a simple webpage with an input field. When a user enters text in the inputfield and clicks the button, the actual value of the field must be displayed in the console. Here is the HTML file content: The developer wrote the javascript codebelow: Const button = document.querySelector(‘button’); button.addEvenListener(‘click’, () => ( Const input = document.querySelector(‘input’); console.log(input.getAttribute(‘value’)); When the user clicks the button, the output is always “Hello”. What needs to be done make this code work as expected?
Options
Q: 19
Given the HTML below: Salesforce Javascript Developer I question Which statement adds the priority-account CSS class to the Universal Containers row?
Options
Q: 20
The developer wants to test the array shown: const arr = Array(5).fill(0) Which two tests are the most accurate for this array ? Choose 2 answers:
Options
Question 11 of 20 · Page 2 / 2

Premium Access Includes

  • Quiz Simulator
  • Exam Mode
  • Progress Tracking
  • Question Saving
  • Flash Cards
  • Drag & Drops
  • 3 Months Access
  • PDF Downloads
Get Premium Access
Scroll to Top

FLASH OFFER

Days
Hours
Minutes
Seconds

avail 10% DISCOUNT on YOUR PURCHASE