최신Salesforce Certified JavaScript Developer - Multiple Choice - JS-Dev-101무료샘플문제
문제1
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 developer wants to advocate for a mature, well-supported web framework/library instead of a new one (Minimalist.js).
Which two should be recommended?
정답: B,D
설명: (KoreaDumps 회원만 볼 수 있음)
문제2
Refer to the following code:
01 let obj = {
02 foo: 1,
03 bar: 2
04 }
05 let output = []
06
07 for (let something of obj) {
08 output.push(something);
09 }
10
11 console.log(output);
What is the value of output on line 11?
Refer to the following code:
01 let obj = {
02 foo: 1,
03 bar: 2
04 }
05 let output = []
06
07 for (let something of obj) {
08 output.push(something);
09 }
10
11 console.log(output);
What is the value of output on line 11?
정답: A
설명: (KoreaDumps 회원만 볼 수 있음)
문제3
Considering type coercion, what does the following expression evaluate to?
true + '13' + NaN
Considering type coercion, what does the following expression evaluate to?
true + '13' + NaN
정답: A
설명: (KoreaDumps 회원만 볼 수 있음)
문제4
A developer needs the function personalizeWebsiteContent to run when the webpage is fully loaded (HTML and all external resources).
Which implementation should be used?
A developer needs the function personalizeWebsiteContent to run when the webpage is fully loaded (HTML and all external resources).
Which implementation should be used?
정답: C
설명: (KoreaDumps 회원만 볼 수 있음)
문제5
Refer to the code below:
01 let total = 10;
02 const interval = setInterval(() => {
03 total++;
04 clearInterval(interval);
05 total++;
06 }, 0);
07 total++;
08 console.log(total);
Considering that JavaScript is single-threaded, what is the output of line 08 after the code executes?
Refer to the code below:
01 let total = 10;
02 const interval = setInterval(() => {
03 total++;
04 clearInterval(interval);
05 total++;
06 }, 0);
07 total++;
08 console.log(total);
Considering that JavaScript is single-threaded, what is the output of line 08 after the code executes?
정답: C
설명: (KoreaDumps 회원만 볼 수 있음)
문제6
Refer to the code below:
01 let o = {
02 get js() {
03 let city1 = String('St. Louis');
04 let city2 = String('New York');
05
06 return {
07 firstCity: city1.toLowerCase(),
08 secondCity: city2.toLowerCase(),
09 }
10 }
11 }
What value can a developer expect when referencing o.js.secondCity?
Refer to the code below:
01 let o = {
02 get js() {
03 let city1 = String('St. Louis');
04 let city2 = String('New York');
05
06 return {
07 firstCity: city1.toLowerCase(),
08 secondCity: city2.toLowerCase(),
09 }
10 }
11 }
What value can a developer expect when referencing o.js.secondCity?
정답: D
설명: (KoreaDumps 회원만 볼 수 있음)
문제7
A page loads 50+ <div class="ad-library-item"> elements, all ads.
Developer wants to quickly and temporarily remove them.
Options:
A page loads 50+ <div class="ad-library-item"> elements, all ads.
Developer wants to quickly and temporarily remove them.
Options:
정답: B
설명: (KoreaDumps 회원만 볼 수 있음)
문제8
Refer to the code below:
let inArray = [ [1, 2], [3, 4, 5] ];
Which two statements result in the array [1, 2, 3, 4, 5]?
(With corrected typing errors: usArray → inArray, .. → ....)
Refer to the code below:
let inArray = [ [1, 2], [3, 4, 5] ];
Which two statements result in the array [1, 2, 3, 4, 5]?
(With corrected typing errors: usArray → inArray, .. → ....)
정답: A,C
설명: (KoreaDumps 회원만 볼 수 있음)