JS-Dev-101 無料問題集「Salesforce Certified JavaScript Developer - Multiple Choice」

for (let number = 2; number <= 5; number += 1) {
// faster code statement here
}
Which statement meets the requirements to log an error when the Boolean statement evaluates to false?

解説: (JPNTest メンバーにのみ表示されます)
Refer to the following object:
const dog = {
firstName: 'Beau',
lastName: 'Boo',
get fullName() {
return this.firstName + ' ' + this.lastName;
}
};
How can a developer access the fullName property for dog?

解説: (JPNTest メンバーにのみ表示されます)
Corrected code:
let obj = {
foo: 1,
bar: 2
};
let output = [];
for (let something in obj) {
output.push(something);
}
console.log(output);
What is the output of line 11?

解説: (JPNTest メンバーにのみ表示されます)
Refer to the following code block:
01 let array = [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11];
02 let output = 0;
03
04 for (let num of array) {
05 if (output > 10) {
06 break;
07 }
08 if (num % 2 == 0) {
09 continue;
10 }
11 output += num;
12 }
What is the value of output after the code executes?

解説: (JPNTest メンバーにのみ表示されます)
A developer wrote the following code to test a sum3 function that takes in an array of numbers and returns the sum of the first three numbers in the array. The test passes:
01 let res = sum3([1, 2, 3]);
02 console.assert(res === 6);
03
04 res = sum3([1, 2, 3, 4]);
05 console.assert(res === 6);
A different developer made changes to the behavior of sum3 to instead sum all of the numbers present in the array.
Which two results occur when running the test on the updated sum3 function?

正解:B、C 解答を投票する
解説: (JPNTest メンバーにのみ表示されます)
Which three actions can the code execute in the browser console?

正解:B、C、D 解答を投票する
解説: (JPNTest メンバーにのみ表示されます)
const str = 'Salesforce';
Which two statements result in the word "Sales"?

正解:B、C 解答を投票する
解説: (JPNTest メンバーにのみ表示されます)
Refer to the code below:
01 function myFunction(reassign) {
02 let x = 1;
03 var y = 1;
04
05 if (reassign) {
06 let x = 2;
07 var y = 2;
08 console.log(x);
09 console.log(y);
10 }
11
12 console.log(x);
13 console.log(y);
14 }
What is displayed when myFunction(true) is called?

解説: (JPNTest メンバーにのみ表示されます)
Which statement accurately describes the behavior of the async/await keywords?

解説: (JPNTest メンバーにのみ表示されます)
Refer to the code below:
01 const objBook = {
02 title: 'JavaScript',
03 };
04 Object.preventExtensions(objBook);
05 const newObjBook = objBook;
06 newObjBook.author = 'Robert';
What are the values of objBook and newObjBook respectively?

解説: (JPNTest メンバーにのみ表示されます)

弊社を連絡する

我々は12時間以内ですべてのお問い合わせを答えます。

オンラインサポート時間:( UTC+9 ) 9:00-24:00
月曜日から土曜日まで

サポート:現在連絡