Download Salesforce JavaScript Developer I.Javascript-Developer-I.VCEplus.2021-05-20.60q.vcex

Vendor: Salesforce
Exam Code: Javascript-Developer-I
Exam Name: Salesforce JavaScript Developer I
Date: May 20, 2021
File Size: 4 MB
Downloads: 1

How to open VCEX files?

Files with VCEX extension can be opened by ProfExam Simulator.

Demo Questions

Question 1
Which three statements are true about promises? (Choose three.)
  1. A promise has a .then() method
  2. A fulfilled or rejected promise will not change states
  3. The executor of a new Promise runs automatically
  4. A pending promise can become fulfilled, settled, or rejected
  5. A settled promise can become resolved
Correct answer: ABD
Question 2
A developer is trying to convince management that their team will benefit from using Node.js for a backend server that they are going to create. 
The server will be a web server that handles API requests from a website that the team has already built using HTML, CSS, and JavaScript.  
Which three benefits of Node.js can the developer use to persuade their manager? (Choose three.)
  1. Ensures stability with one major release every few years
  2. Uses non-blocking functionality for performant request handling
  3. Installs with its own package manager to install and manage third-party libraries  
  4. Performs a static analysis on code before execution to look for runtime errors
  5. Executes server-side JavaScript code to avoid learning a new language
Correct answer: BCD
Question 3
A developer creates a generic function to log custom messages in the console. To do this, the function below is implemented.  
   
  
Which three console logging methods allow the use of string substitution in line 02? (Choose three.)
  1. info
  2. error
  3. message
  4. assert
  5. log
Correct answer: ACD
Explanation:
 
 
Question 4
Refer to the code below: 
   
  
What value can a developer expect when referencing o.js.secondCity?
  1. An error
  2. ‘New York’
  3. ‘new york’
  4. undefined
Correct answer: C
Explanation:
 
 
Question 5
Given the code below: 
   
  
What is logged to the console?
  1. 1 2 3
  2. 1 3 2
  3. 2 1 3
  4. 2 3 1
Correct answer: D
Question 6
At Universal Containers, every team has its own way of copying JavaScript objects. The code snippet shows as implementation from one team: 
   
  
What is the output of the code execution?
  1. Hello John Doe
  2. Hello Dan Doe
  3. TypeError: dan.name is not a function
  4. TypeError: Assignment to constant variable
Correct answer: C
Explanation:
 
 
Question 7
A test has a dependency on database.query. During the test, the dependency is replaced with an object called database with the method, query, that returns an array. 
The developer needs to verify how many times the method was called and the arguments used each time.  
Which two test approaches describe the requirement? (Choose two.)
  1. Integration
  2. White box
  3. Mocking
  4. Black box
Correct answer: BD
Question 8
Refer to the code below: 
   
  
What is the output if this function when called with an empty array?  
 
  1. Returns 0
  2. Returns NaN
  3. Returns 10
  4. Throws an error
Correct answer: D
Explanation:
Reference: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Errors/Reduce_of_empty_array_with_no_initial_value
Reference: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Errors/Reduce_of_empty_array_with_no_initial_value
Question 9
Which statement can a developer apply to increment the browser’s navigation history without a page refresh?
  1. window.history.pushState(newStateObject);
  2. window.history.pushState(newStateObject, ‘’, null);
  3. window.history.state.push(newStateObject);
  4. window.history.replaceState(newStateObject, ‘’, null);
Correct answer: A
Explanation:
Reference: https://developer.mozilla.org/en-US/docs/Web/API/History/replaceState 
Reference: https://developer.mozilla.org/en-US/docs/Web/API/History/replaceState 
Question 10
Refer to the code below: 
   
  
What is the value of result after line 10 executes?
  1. John undefined
  2. John Developer
  3. undefined Developer
  4. Error: myFather.job is not a function
Correct answer: B
HOW TO OPEN VCE FILES

Use VCE Exam Simulator to open VCE files
Avanaset

HOW TO OPEN VCEX AND EXAM FILES

Use ProfExam Simulator to open VCEX and EXAM files
ProfExam Screen

ProfExam
ProfExam at a 20% markdown

You have the opportunity to purchase ProfExam at a 20% reduced price

Get Now!