Salesforce Certified JavaScript Developer (JS-Dev-101) - JavaScript-Developer-I무료 덤프문제 풀어보기

Function to test:
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 this function?

정답: A,B
설명: (Fast2test 회원만 볼 수 있음)
Which statement allows a developer to update the browser navigation history without a page refresh?

정답: B
설명: (Fast2test 회원만 볼 수 있음)
Which option is true about the strict mode in imported modules?

정답: C
설명: (Fast2test 회원만 볼 수 있음)
Which two console logs output NaN?

정답: A,B
설명: (Fast2test 회원만 볼 수 있음)
A class was written to represent regular items and sale items. Code:
01 let regItem = new Item( ' Scarf ' , 55);
02 let saleItem = new SaleItem( ' Shirt ' , 80, .1);
03 Item.prototype.description = function() { return ' This is a ' + this.name; }
04 console.log(regItem.description());
05 console.log(saleItem.description());
06
07 SaleItem.prototype.description = function() { return ' This is a discounted ' + this.name; }
08 console.log(regItem.description());
09 console.log(saleItem.description());
What is the output?

정답: A
설명: (Fast2test 회원만 볼 수 있음)
Refer to the code below:
01 const myFunction = arr = > {
02 return arr.reduce((result, current) = > {
03 return result + current;
04 }, 10);
05 }
What is the output of this function when called with an empty array?

정답: B
설명: (Fast2test 회원만 볼 수 있음)
Code:
01 let array = [1, 2, 3, 4, 4, 5, 4, 4];
02 for (let i = 0; i < array.length; i++) {
03 if (array[i] === 4) {
04 array.splice(i, 1);
05 i--;
06 }
07 }
What is the value of array after execution?

정답: A
설명: (Fast2test 회원만 볼 수 있음)
Refer to the code below:
const searchText = ' Yay! Salesforce is amazing! ' ;
let result1 = searchText.search(/sales/i);
let result2 = searchText.search(/sales/);
console.log(result1);
console.log(result2);
After running this code, which result is displayed on the console?

정답: A
설명: (Fast2test 회원만 볼 수 있음)
Original code:
01 let requestPromise = client.getRequest;
03 requestPromise().then((response) = > {
04 handleResponse(response);
05 });
The developer wants to gracefully handle errors from a Promise-based GET request.
Which code modification is correct?

정답: D
설명: (Fast2test 회원만 볼 수 있음)
A developer wants to advocate for a mature, well-supported web framework/library instead of a new one (Minimalist.js).
Which two should be recommended?

정답: A,C
설명: (Fast2test 회원만 볼 수 있음)

우리와 연락하기

문의할 점이 있으시면 메일을 보내오세요. 12시간이내에 답장드리도록 하고 있습니다.

근무시간: ( UTC+9 ) 9:00-24:00
월요일~토요일

서포트: 바로 연락하기 

English Deutsch 繁体中文 日本語