JavaScript-Developer-I Free Certification Exam Material from PassLeader with 160 Questions [Q28-Q49]

Share

JavaScript-Developer-I Free Certification Exam Material from PassLeader with 160 Questions

Use Real JavaScript-Developer-I - 100% Cover Real Exam Questions


Who should take the Salesforce JavaScript-Developer-I Exam

This course is designed for Javascript developers starting on the Salesforce platform who require programming customizations on front-end and back-end. There are no prerequisites for Salesforce JavaScript Developer I Exam. Typical job roles that align to the Salesforce Certified JavaScript Developer I are as follows:

  • Web application developer
  • Salesforce developer
  • UI/UX Engineer
  • Front end developer
  • Software/backend developer

What is the duration, language, and format of Salesforce JavaScript-Developer-I Exam

  • This exam is offered in only English.
  • This exam consists of 60 questions
  • Passing score 65%
  • The type of questions is Multiple Choice and situation-based questions.
  • There is a time limit of 105 minutes for the exam.

Topics of Salesforce JavaScript Developer I Exam

Aspirants must know the exam topics before they start of preparation. Because it will help them to prepare for the below concepts Salesforce JavaScript-Developer-I exam will include the following topics:

1. Variable, Types, and Collection: 23%

Scenario based coding Variables Creation and Initialization JSON object understanding

2. Object, Functions, and Classes: 25%

Implementation of different functions Understanding of different modules of Javascript Scope of variables and their execution flow

3. Browser and Events: 17%

Handling and propagation of events Development tools of browsers Understanding of browser specific APIs

4. Asynchronous Programming: 13%

Asynchrounous programming different concepts Monitoring and management of different loops

5. Server Side Javascript: 8%

Implementation of Node.js Understanding of Node.js CLI commands

6. Testing: 7%

Unit Testing effectiveness of different tests

 

NEW QUESTION 28
At Universal Containers, every team has its own way of copying JavaScript objects. The code snippet shows an implementation from one team:

What is the output of the code execution?

  • A. TypeError: Assignment to constant variable
  • B. TypeError: dan.name is not a function
  • C. Hello Dan Doe
  • D. Hello John Doe

Answer: B

 

NEW QUESTION 29
A developer has code that calculates a restaurant bill, but generates incorrect answers while testing the code.

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

  • A. Using the debugger command on line 03.
  • B. Calling the console. Trace( total ) method on line 03.
  • C. Using the debugger command on line 05.
  • D. Wrapping findsubtotal in a console .log method.

Answer: A

 

NEW QUESTION 30
Refer to the code below:

What is the value result after line 10 executes?

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

Answer: C

 

NEW QUESTION 31
Refer to the code below:
Let searchString = ' Look for this ';
Which two options remove the whitespace from the beginning of searchString? Choose 2 answers

  • A. searchString. trimEnd ( ) ;
  • B. trimStart (searchString) ;
  • C. searchString. Replace (/^\a\a'/' ' ') ;
  • D. searchString. trimstart ( ) ;

Answer: C,D

 

NEW QUESTION 32
A test has a dependency on database. query. During the test, the dependency is replaced with an object called database with the method, Calculator query, that returns an array. The developer does not need to verify how many times the method has been called.
Which two test approaches describe the requirement?
Choose 2 answers

  • A. Black box
  • B. Stubbing
  • C. White box
  • D. Substitution

Answer: C,D

 

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

  • A. import * from '/path/universalContainersLib.js';
    universalContainersLib. foo ()7
    universalContainersLib.bar ();
  • B. import * as lib from '/path/universalContainersLib.js';
    lib.foo();
    lib. bar ();
  • C. import all from '/path/universalContainersLib.js';
    universalContainersLib.foo();
    universalContainersLib.bar ();
  • D. import {foo,bar} from '/path/universalCcontainersLib.js';
    foo():
    bar()?

Answer: B

 

NEW QUESTION 34
A developer is required to write a function that calculates the sum of elements in an array but is getting undefined every time the code is executed. The developer needs to find what is missing in the code below.

Which option makes the code work as expected?

  • A. Replace line 04 with result + current ;
  • B. Replace line 03 with if 9 (arr. Length == 0) ( return 0; )
  • C. Replace line 02 with return arr. map ( (result, current => (
  • D. Replace line 05 with return results;

Answer: D

 

NEW QUESTION 35
Refer to the code below:
Const searchTest = 'Yay! Salesforce is amazing!" ;
Let result1 = searchText.search(/sales/i);
Let result 21 = searchText.search(/sales/i);
console.log(result1);
console.log(result2);
After running this code, which result is displayed on the console?

  • A. > true > false
  • B. > 5 > -1
  • C. > 5 > 0
  • D. > 5 >undefined

Answer: D

 

NEW QUESTION 36
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. [1, 2, 3, 4, 5, 4, 4]
  • B. [1, 2, 3, 4, 5, 4]
  • C. [1, 2, 3, 4, 4, 5, 4]
  • D. [1, 2, 3, 5]

Answer: C

 

NEW QUESTION 37
Universal Containers recently launched its new landing page to host a crowd-funding 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 includes the same ad-library-item class, They are hidden by default, and they are randomly displayed while the user navigates through the page.

  • A. Use the DOM inspector to remove 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 browser to execute a script that removes all the element containing the class ad-library-item.

Answer: D

 

NEW QUESTION 38
Refer to the code below:

A developer needs to dispatch a custom event called update to send information about recordId.
Which two options could a developer insert at the placeholder in line 02 to achieve this? Choose 2 answers

  • A. 'update' , '123abc'
  • B. 'update', ( recordId ; 123abc'
    )
  • C. {type ; update ', recordId : '123abc')
  • D. 'update', {
    Detail ; {
    recordId, '123abc
    )
    )

Answer: B,D

 

NEW QUESTION 39
A developer is creating a simple webpage with a button. When a user clicks this button for the first time, a message is displayed.
The developer wrote the JavaScript code below, but something is missing. The message gets displayed time a user clicks the button instead of just the first time.

Which two code lines make this code work as required? Choose 2 answers

  • A. On line 04, use button. removeEventlistener ('click', listen );
  • B. On line 06, ad an option called once to button. addEventlistener ( ).
  • C. On line 02, use event.first to test if it is the first execution.
  • D. On line 04, use event .stopPropagetion ( );

Answer: A,B

 

NEW QUESTION 40
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 (
  • B. Class clothing item super item (
  • C. Class clothingitem extends item (
  • D. Class clothingitem implements item (

Answer: C

 

NEW QUESTION 41
Given the code below:

Which method can be provide a visual representation of the list if users and to allow sorting by the name or email attributes.

  • A. Console,table (userslist);
  • B. Console.groupCollapsed (userslist);
  • C. Console.group (userList);
  • D. Console.info (userlist);

Answer: C

 

NEW QUESTION 42
Refer to the code below:

What is result of the code block?

  • A. The console logs only 'flag',
  • B. An error is thrown.
  • C. The console logs 'flag' and another flag',
  • D. The console logs flag' and then an error is thrown.

Answer: D

 

NEW QUESTION 43
Refer to the following array:
Let arr1 = [ 1, 2, 3, 4, 5 ];

Which two lines of code result in a second array, arr2 being created such that arr2 is not a reference to arr1?

  • A. Let arr2 = Array.from(arr1);
  • B. Let arr2 = arr1.slice(0, 5);
  • C. Let arr2 = arr1;
  • D. Let arr2 = arr1.sort();

Answer: A,B

 

NEW QUESTION 44
A developer has two ways to write a function:

After deciding on an option, the developer creates 1000 monster objects.
How many growl methods are created with Option A and Option B?

  • A. 1 growl method is created regardless of which option is used.
  • B. 1 growl method is created for Option A. 1000 growl methods are created for Option B.
  • C. 1000 growl methods are created regardless of which option is used.
  • D. 1000 growl methods are created for Option A. 1 growl method is created for Option B.

Answer: D

 

NEW QUESTION 45
Given the following code:

Which replacement for the conditional statement on line 02 allows a developer to correctly determine that a button on the page is clicked?

  • A. o.nodeTarget == this
  • B. Event, clicked
  • C. Event,target.nodename == 'BUTTON"
  • D. button.addEventListener ( 'click')

Answer: C

 

NEW QUESTION 46
A developer creates an object where its properties should be immutable and prevent properties from being added or modified.
Which method should be used to execute this business requirement?

  • A. Object. real ( )
  • B. Object const ( )
  • C. Object. Lock ( )
  • D. Object. filebase ( )

Answer: D

 

NEW QUESTION 47
The developer has a function that prints ''Hello'' to an input name. To test this, the developer created a function that returns world''.

What can the developer do to change the code to print ''Hello world''?

  • A. Change line 2 to console.log ( 'Hello', name () );
  • B. Change line 9 to sayhello (world () ;
  • C. Change line 5 to function world () (
  • D. Change line 7 to ) () ;

Answer: D

 

NEW QUESTION 48
In which situation should a developer include a try... catch block around their function call?

  • A. The function might raise a runtime error that needs to be handled.
  • B. The function contains scheduled code.
  • C. The function results in an out of memory issue.
  • D. The function has an error that should not be silenced.

Answer: A

 

NEW QUESTION 49
......

Dumps Brief Outline Of The JavaScript-Developer-I Exam: https://www.passleader.top/Salesforce/JavaScript-Developer-I-exam-braindumps.html

JavaScript-Developer-I Training & Certification Get Latest Salesforce Developer: https://drive.google.com/open?id=1WGKYhFJT5WCkGDNfFOYCXWwTJtG_1r8c