Act now and download your Salesforce JavaScript-Developer-I test today! Do not waste time for the worthless Salesforce JavaScript-Developer-I tutorials. Download Latest Salesforce Salesforce Certified JavaScript Developer I exam with real questions and answers and begin to learn Salesforce JavaScript-Developer-I with a classic professional.
Online JavaScript-Developer-I free questions and answers of New Version:
NEW QUESTION 1
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 3 answers:
- A. I nstalls with its own package manager toinstall and manage third-party libraries.
- B. Ensures stability with one major release every few years.
- C. Performs a static analysis on code before execution to look for runtime errors.
- D. Executes server-side JavaScript code to avoid learning a new language.
- E. User non blocking functionality for performant request handling .
Answer: ACE
NEW QUESTION 2
Refer to the code below: Function changeValue(obj) { Obj.value =obj.value/2;
}
Const objA = (value: 10);
Const objB = objA; changeValue(objB); Const result = objA.value;
What is the value of result after the code executes?
- A. 10
- B. Nan
- C. 5
- D. Undefined
Answer: C
NEW QUESTION 3
What are two unique features of functions defined with a fat arrow as compared to normal function definition?
Choose 2 answers
- A. The function generated its own this making ituseful for separating the function’s scope from its enclosing scope.
- B. The function receives an argument that is always in scope, called parentThis, which is the enclosing lexical scop
- C. If the function has a single expression in the function body, the expression will be evaluated and implicit returned.
- D. The function uses the this from the enclosing scope.
Answer: AC
NEW QUESTION 4
Consider type coercion, what does the following expression evaluate to? True + 3 + ‘100’ + null
- A. 104
- B. 4100
- C. ‘3100null’
- D. ‘4100null’
Answer: D
NEW QUESTION 5
Refer to the code below:
What is the value of result when the code executes?
- A. 10-10
- B. 5-5
- C. 10-5
- D. 5-10
Answer: A
NEW QUESTION 6
Refer to the code below: console.log(‘’start);
Promise.resolve(‘Success’) .then(function(value){
console.log(‘Success’);
});
console.log(‘End’);
What is the output after the code executes successfully?
- A. EndStart Success
- B. StartSuccess End
- C. StartEnd Success
- D. Success Start End
Answer: C
NEW QUESTION 7
A developer implements a function that adds a few values.
Which three options can the developer invoke for this function to get a return value of 10 ? Choose 3 answers
- A. Sum () (20)
- B. Sum (5, 5) ()
- C. sum() (5, 5)
- D. sum(5)(5)
- E. sum(10) ()
Answer: CD
NEW QUESTION 8
Which two console logs output NaN? Choose 2 answers | |
- A. console.log(10 / Number('5) ) ;
- B. console.log(parseInt ' ("two')) ;
- C. console.log(10 / 0);
- D. console.loeg(10 / 'five');
Answer: BD
NEW QUESTION 9
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 = arr1.slice(0, 5);
- B. Let arr2 = Array.from(arr1);
- C. Letarr2 = arr1;
- D. Let arr2 = arr1.sort();
Answer: AB
NEW QUESTION 10
A developer has the following array of student test grades: Let arr = [ 7, 8, 5, 8, 9 ];
The Teacher wants to double each score and then see an array of the students who scored more than 15 points.
How should thedeveloper implement the request?
- A. Let arr1 = arr.filter(( val) => ( return val > 15 )) .map (( num) => ( return num *2 ))
- B. Let arr1 = arr.mapBy (( num) => ( return num *2 )) .filterBy (( val ) => return val > 15 )) ;
- C. Let arr1 = arr.map((num) => num*2). Filter (( val) => val > 15);
- D. Let arr1 = arr.map((num) => ( num *2)).filterBy((val) => ( val >15 ));
Answer: C
NEW QUESTION 11
A developer is required to write a function that calculates the sum of elements in an
array but is getting undefinedevery time the code is executed. The developer needs to find what is missing in the code below.
Const sumFunction = arr => {
Return arr.reduce((result, current) => {
//
Result += current;
//
), 10);
);
Which option makes the code work as expected?
- A. Replace line 02 with return arr.map(( result, current) => (
- B. Replace line 04 with result = result +current;
- C. Replace line 03 with if(arr.length == 0 ) ( return 0; )
- D. Replace line 05 with return result;
Answer: D
NEW QUESTION 12
The developer wants to test this code:
Const toNumber =(strOrNum) => strOrNum; Which two tests are most accurate for this code? Choose 2 answers
- A. console.assert(toNumber(‘2’) ===2);
- B. console.assert(Number.isNaN(toNumber()));
- C. console.assert(toNumber(‘-3’) < 0);
- D. console.assert(toNumber () === NaN);
Answer: AC
NEW QUESTION 13
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?
- A. Assert
- B. Log
- C. Message
- D. Info
- E. Error
Answer: AD
NEW QUESTION 14
Universal Containers (UC) notices that its application that allows users to search for accounts makes a network request each time a key is pressed. This results in too many requests for the server to handle.
Address this problem, UCdecides to implement a debounce function on string change handler.
What are three key steps to implement this debounce function? Choose 3 answers:
- A. If there is an existing setTimeout and the search string change, allow the existingsetTimeout to finish,and do not enqueue a new setTimeout.
- B. When the search string changes, enqueue the request within a setTimeout.
- C. Ensure that the network request has the property debounce set to true.
- D. If there is an existing setTimeout and the search string changes,cancel the existing setTimeout using the persisted timerId and replace it with a new setTimeout.
- E. Store the timeId of the setTimeout last enqueued by the search string change handle.
Answer: ABC
NEW QUESTION 15
Refer to the following object:
How can a developer access the fullName property for cat?
- A. cat.fullName
- B. cat.fullName()
- C. cat.get.fullName
- D. cat.function.fullName()
Answer: A
NEW QUESTION 16
......
https://www.downloadfreepdf.net/JavaScript-Developer-I-pdf-download.html (New 157 Q&As)
