Download Free Salesforce JavaScript-Developer-I Real Exam Questions Download
Latest Salesforce JavaScript-Developer-I Real Exam Dumps PDF
Salesforce JavaScript-Developer-I Exam Syllabus Topics:
| Topic | Details |
|---|---|
| Topic 1 |
|
| Topic 2 |
|
| Topic 3 |
|
| Topic 4 |
|
| Topic 5 |
|
| Topic 6 |
|
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 67
Given the code below:
Function myFunction(){
A =5;
Var b =1;
}
myFunction();
console.log(a);
console.log(b);
What is the expected output?
- A. Line 08 outputs the variable, but line 09 throws an error.
- B. Both lines 08 and 09 are executed, but values outputted are undefined.
- C. Both lines 08 and 09 are executed, and the variables are outputted.
- D. Line 08 thrones an error, therefore line 09 is never executed.
Answer: A
NEW QUESTION 68
Refer to the code below:
Const pi = 3.1415326,
What is the data type of pi?
- A. Decimal
- B. Float
- C. Number
- D. Double
Answer: C
NEW QUESTION 69
A developer needs to test this function:
01 const sum3 = (arr) => (
02 if (!arr.length) return 0,
03 if (arr.length === 1) return arr[0],
04 if (arr.length === 2) return arr[0] + arr[1],
05 return arr[0] + arr[1] + arr[2],
06 );
Which two assert statements are valid tests for the function?
Choose 2 answers
- A. console.assert(sum3(1, '2')) == 12);
- B. console.assert(sum3(0)) == 0);
- C. console.assert(sum3('hello', 2, 3, 4)) === NaN);
- D. console.assert(sum3(-3, 2 )) == -1);
Answer: A,D
NEW QUESTION 70
Refer to the string below.
Const str='Salesforce';
Which two statements results in the word 'Sales'?
Answer:
Explanation:
Str.substring(0,5);
Str.substr(0,5);
NEW QUESTION 71
Refer to the HTML below:
<p> The current status of an order: < span> id='' status '> In progress < /span> < /p> Which JavaScript Statement changes the text 'In Progress' to Completed'?
- A. Document, getElementById (status'') , value = completed' ;
- B. Document, getElementById ('',status''), innerHTML = 'Completed' ;
- C. Document, getElementById (''# status''), innerHTML = 'Completed' ;
- D. Document, getElementById (''status''), innerHTML = 'Completed' ;
Answer: D
NEW QUESTION 72
Which option is a core Node;js module?
- A. Ios
- B. Memory
- C. Path
- D. locale
Answer: A,C
NEW QUESTION 73
Refer to the code:
Given the code above, which three properties are set for pet1? Choose 3 answers
- A. type
- B. canTalk
- C. name
- D. owner
- E. speak
Answer: A,B,C
NEW QUESTION 74
Refer to the code below:
for(let number =2 ; number <= 5 ; number += 1 ) {
// insert code statement here
}
The developer needs to insert a code statement in the location shown. The code statement has these requirements:
1. Does require an import
2. Logs an error when the boolean statement evaluates to false
3. Works in both the browser and Node.js
Which meet the requirements?
- A. console.assert(number % 2 === 0);
- B. assert (number % 2 === 0);
- C. console.debug(number % 2 === 0);
- D. console.error(number % 2 === 0);
Answer: D
NEW QUESTION 75
A developer creates a class that represents a blog post based on the requirement that a Post should have a body author and view count.
The Code shown Below:
Class Post {
// Insert code here
This.body =body
This.author = author;
this.viewCount = viewCount;
}
}
Which statement should be inserted in the placeholder on line 02 to allow for a variable to be set to a new instanceof a Post with the three attributes correctly populated?
- A. constructor() {
- B. Function Post (body, author, viewCount) {
- C. super (body, author, viewCount) {
- D. constructor (body, author, viewCount) {
Answer: D
NEW QUESTION 76
Given the following code:
document.body.addEventListener(' click ', (event) => {
if (/* CODE REPLACEMENT HERE */) {
console.log('button clicked!');
)
});
Which replacement for the conditional statement on line 02 allows a developer to
correctly determine that a button on page is clicked?
- A. Event.clicked
- B. e.nodeTarget ==this
- C. button.addEventListener('click')
- D. event.target.nodeName == 'BUTTON'
Answer: D
NEW QUESTION 77
Refer to the code below:
Which code executes syhello once, two minutes from now?
- A. SetTimeout (sayhello( ), 120000) ;
- B. SetTimeout (sayhello, 120000) ;
- C. delay (sayhello, 120000) ;
- D. SetInterval (sayhello, 120000) ;
Answer: A
NEW QUESTION 78
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. {type ; update ', recordId : '123abc')
- C. 'update', ( recordId ; 123abc'
) - D. 'update', {
Detail ; {
recordId, '123abc
)
)
Answer: C,D
NEW QUESTION 79
Refer to the following code:
Which statement should be added to line 09 for the code to display. The truck 123AB has a weight of 5000 Ib. '?
- A. Super.plate = plate;
- B. Super = (plate ) ;
- C. This .plate = plate;
- D. Vehicle.plate = plate
Answer: B,C,D
NEW QUESTION 80
A developer wants to define a function log to be used a few times on a single-file JavaScript script.
01 // Line 1 replacement
02 console.log('"LOG:', logInput);
03 }
Which two options can correctly replace line 01 and declare the function for use?
Choose 2 answers
- A. const log(loginInput) {
- B. function log = (logInput) {
- C. function leg(logInput) {
- D. const log = (logInput) => {
Answer: C,D
NEW QUESTION 81
In the browser, the window object is often used to assign variables that require the broadcast scope in an application Node is application do not have access to the window object by default.
Which two methods are used to address this? Choose 2 answer
- A. Create a new window object in the root file.
- B. Use the document instead of the window object.
- C. Assign variables to the global object.
- D. Assign variables to module, exports and require them as needed.
Answer: A,B
NEW QUESTION 82
Refer to the following array:
Let arr = [1, 2, 3, 4, 5];
Which three options result in x evaluating as [1, 2]?
Choose 3 answer
- A. let x = arr. slice (2);
- B. let x = arr. slice (0, 2);
- C. let x arr.filter((a) => (return a <= 2 });
- D. let x =arr.splice(0, 2);
- E. let x = arr.filter ((a) => 2 }) ;
Answer: B,C,D
NEW QUESTION 83
......
PDF (New 2022) Actual Salesforce JavaScript-Developer-I Exam Questions: https://www.troytecdumps.com/JavaScript-Developer-I-troytec-exam-dumps.html
JavaScript-Developer-I Exam Dumps, JavaScript-Developer-I Practice Test Questions: https://drive.google.com/open?id=1nloPgwJH5TB7YPOG-YlQs6fBz4y6w4nH