Use Free JavaScript-Developer-I Exam Questions that Stimulates Actual EXAM [Q11-Q28]

Share

Use Free JavaScript-Developer-I Exam Questions that Stimulates Actual EXAM

Get 100% Real JavaScript-Developer-I Free Online Practice Test


Salesforce JavaScript-Developer-I Exam has been designed by experts in the field to ensure that candidates have the knowledge and skills necessary to develop high-quality applications on the Salesforce platform. JavaScript-Developer-I exam includes a variety of topics, including designing and implementing solutions that use Apex and Visualforce, querying and manipulating data, and developing custom Lightning components. It also covers topics such as security, integration, and deployment.


Salesforce JavaScript-Developer-I Certification Exam is designed to test a developer's knowledge and skills in using JavaScript with the Salesforce platform. Salesforce Certified JavaScript Developer I Exam certification is ideal for developers who want to demonstrate their ability to develop custom applications using JavaScript and the Salesforce Lightning platform.

 

NEW QUESTION # 11
Refer to the following code block:

What is the console output?

  • A. > Uncaught Reference Error
  • B. > Jackie got 70% on test.
  • C. > Better student Jackie got 100% on test.
  • D. > Better student Jackie got 70% on test.

Answer: D


NEW QUESTION # 12
A developer is setting up a new Node.js server with a client library that is built using events and callbacks.
The library:
* Will establish a web socket connection and handle receipt of messages to the server
* Will be imported with require, and made available with a variable called ws.
The developer also wants to add error logging if a connection fails.
Given this information, which code segment show the correct way to set up a client two events that listen at execution time?
A)

B)

C)

D)

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

Answer: C


NEW QUESTION # 13
Refer to code below:
Const objBook = {
Title: 'Javascript',
};
Object.preventExtensions(objBook);
Const newObjBook = objBook;
newObjectBook.author = 'Robert';
What are the values of objBook and newObjBook respectively ?

  • A. [title: "javaScript"] [title: "javaScript"]
  • B. {author: "Robert"}
    {author: "Robert", title: "javaScript}
  • C. {author: "Robert", title: "javaScript}
    Undefined
  • D. {author: "Robert", title: "javaScript}
    {author: "Robert", title: "javaScript}

Answer: A


NEW QUESTION # 14
A class was written to represent items for purchase in an online store, and a second class representing items that are on sale at a discounted price. The constructor sets the name to the first value passed in. The pseudocode is below:

There is a new requirement for a developer to implement a description method that will retrun a brief description for item and saleitem.

What is the out when executing the code above?

  • A. This is a Scaf
    Uncaught TypeError: saleItem, description is not a function
    This is a Shirt
    This is a discounted Shirt
  • B. This is a Scarf
    This is a Shirt
    This is a discounted Scard
    This is a discounted Shirt
  • C. This is a Scarf
    This is a Shirt
    This is a Scarf
    This is a discounted Shirt
  • D. This is a Scarf
    Unicaught TypeError: saleitem, description is not a function
    This is a Scarf
    This is a discounted Shirt

Answer: C


NEW QUESTION # 15
developer wants to use a module named universalContainersLib and them call functions
from it.
How should a developer import every function from the module and then call the fuctions foo
and bar ?

  • A. import * from '/path/universalContaineraLib.js';
    universalContainersLib.foo();
    universalContainersLib.bar();
  • B. import * ad lib from '/path/universalContainersLib.js';
    lib.foo();
    lib.bar();
  • C. import (foo, bar) from '/path/universalContainersLib.js';
    foo();
    bar();
  • D. import all from '/path/universalContaineraLib.js';
    universalContainersLib.foo();
    universalContainersLib.bar();

Answer: B


NEW QUESTION # 16
Refer to the code below:
01 const exec = (item, delay) =>{
02 new Promise(resolve => setTimeout( () => resolve(item), delay)),
03 async function runParallel() {
04 Const (result1, result2, result3) = await Promise.all{
05 [exec ('x', '100') , exec('y', 500), exec('z', '100')]
06 );
07 return `parallel is done: $(result1) $(result2)$(result3)`;
08 }
}
}
Which two statements correctly execute the runParallel () function?
Choose 2 answers

  • A. runParallel ( ). done(function(data){
    return data;
    });
  • B. runParallel () .then(data);
  • C. Async runParallel () .then(data);
  • D. runParallel () .then(function(data) return data

Answer: A,D


NEW QUESTION # 17
A developer wants to leverage a module to print a price in pretty format, and has imported a method as shown below:
Import printPrice from '/path/PrincePrettyPrint. Js';
Based on the code, what must be true about the printPrice function of the PricePrettyPrint modules for this import to work?

  • A. printPrice must be an all export
  • B. printPrice must be a multi export
  • C. printPrice must be named export
  • D. printPrice must be an default export

Answer: C


NEW QUESTION # 18
Refer to the code below.

After changing the string index values, the of atr is Javascript''. What is the reason for this value?

  • A. Primitive values are immutable
  • B. Non-primitive values are immutable.
  • C. Primitive values are mutable.
  • D. Non-primitive values are mutable.

Answer: D


NEW QUESTION # 19
Cloud Kicks has a class to represent item for sale in an online store, as shown below:

A new business requirement comes in that request a clothingitem class, that should have all of the properties and methods of the item class, but will also have properties that are specific top clothes.
Which line of code properly declares the clothingitem class such that it inherits from item?

  • A. Class clothingitem extends item (
  • B. Class Clothingitem (
  • C. Class clothingitem implements item (
  • D. Class clothing item super item (

Answer: A


NEW QUESTION # 20
Refer to the following code that imports a module named utils:
import (foo, bar) from '/path/Utils.js';
foo() ;
bar() ;
Which two implementations of Utils.js export foo and bar such that the code above runs without
error?
Choose 2 answers

  • A. const foo = () => { return 'foo' ; }
    const bar = () => { return 'bar' ; }
    export { bar, foo }
  • B. const foo = () => { return 'foo';}
    const bar = () => {return 'bar'; }
    Export default foo, bar;
  • C. Export default class {
    foo() { return 'foo' ; }
    bar() { return 'bar' ; }
    }
  • D. // FooUtils.js and BarUtils.js exist
    Import (foo) from '/path/FooUtils.js';
    Import (boo) from ' /path/NarUtils.js';

Answer: A,C


NEW QUESTION # 21
Refer to the code snippet:

What is the value of array after the code executes?

  • A. 1, 2, 3, 4, 5, 4, 4
  • B. 1, 2, 3, 5
  • C. 1, 2, 3, 4, 4, 5, 4
  • D. 1, 2, 3, 4, 5, 4

Answer: B


NEW QUESTION # 22
Given the JavaScript below:

Which code should replace the placeholder comment on line 06 to hide accounts that do not match the search string?

  • A. 'Visible : 'hidden'
  • B. 'Block' : 'none'
  • C. 'None' : 'block'
  • D. 'Hidden, visible

Answer: B


NEW QUESTION # 23
Universal Containers recently its new landing page to host crowd-function campaign. The page uses an external library to display some third-party ads. Once the page is fully loaded, It creates more than 50 new HTML items placed randomly inside the DOM, like the one in the code below.

All the elements included the same ad-library-item class. They are hidden by default, and they are randomly displayed while the user navigation through the page.
Tired of all the ads, what can the developer do to temporarily and quickly remove them?

  • A. Use the browser console to execute a script that removes all the elements containing the class ad-library-item.
  • B. Use the DOM inspector to prevent the load event to be fired.
  • C. Use the browser console to execute a script that prevents the load event to be fired.
  • D. Use the DOM inspector to remove all the elements containing the call ad-library -item.

Answer: A


NEW QUESTION # 24
Given the code below:

What is logged to the console'

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

Answer: D


NEW QUESTION # 25
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 to schedule this function?

  • A. setTimeout (formatName(), 5000, "John", "BDoe");
  • B. setTimout(() => { formatName("John', 'Doe') }, 5000);
  • C. setTimeout (formatName('John', ''Doe'), 5000);
  • D. setTimeout ('formatName', 5000, 'John", "Doe');

Answer: D


NEW QUESTION # 26
Refer to the code declarations below:

Which three expressions return the string JavaScript?
Choose 3 answers

  • A. Str1 + str2;
  • B. Str1.join (str2);
  • C. $(str1) $ (str2} ';
  • D. Str1.concat (str2);
  • E. Concat (str1, str2);

Answer: A,C,D


NEW QUESTION # 27
developer creates a new web server that uses Node.js. It imports a server library that uses events and callbacks for handling server functionality.
The server library is imported with require and is made available to the code by a variable named server. The developer wants to log any issues that the server has while booting up.
Given the code and the information the developer has, which code logs an error at boost with an event?

  • A. Try{
    server.start();
    } catch(error) {
    console.log('ERROR', error);
    }
  • B. Server.on ('error', (error) => {
    console.log('ERROR', error);
    });
  • C. Server.catch ((server) => {
    console.log('ERROR', error);
    });
  • D. Server.error ((server) => {
    console.log('ERROR', error);
    });

Answer: B


NEW QUESTION # 28
......

BEST Verified Salesforce JavaScript-Developer-I Exam Questions (2023) : https://freedumps.actual4exams.com/JavaScript-Developer-I-real-braindumps.html