Salesforce Certified JavaScript Developer I (CRT-600日本語版) - CRT-600日本語 Exam Practice Test
次のコードを参照してください。
<html lang="en">
<body>
<div onclick = "console.log('Outer message') ;">
<button id ="myButton">CLick me<button>
</div>
</body>
<script>
function displayMessage(ev) {
ev.stopPropagation();
console.log('Inner message.');
}
const elem = document.getElementById('myButton');
elem.addEventListener('クリック' , displayMessage);
</script>
</html>
ボタンをクリックすると、コンソールには何が表示されますか?
<html lang="en">
<body>
<div onclick = "console.log('Outer message') ;">
<button id ="myButton">CLick me<button>
</div>
</body>
<script>
function displayMessage(ev) {
ev.stopPropagation();
console.log('Inner message.');
}
const elem = document.getElementById('myButton');
elem.addEventListener('クリック' , displayMessage);
</script>
</html>
ボタンをクリックすると、コンソールには何が表示されますか?
Correct Answer: B
以下の文字列を参照してください。
const str = 'Salesforce';
「Sales」という単語になる 2 つのステートメントはどれですか?
2つの答えを選択してください
const str = 'Salesforce';
「Sales」という単語になる 2 つのステートメントはどれですか?
2つの答えを選択してください
Correct Answer: A,C
再帰関数の実際の例を示す 2 つのコード スニペットはどれですか?
2つの答えを選択してください
2つの答えを選択してください
Correct Answer: B,C
以下のコードを参照してください。
function Person() {
this.firstName = 'John';
}
Person.prototype ={
Job: x => 'Developer'
};
const myFather = new Person();
const result =myFather.firstName + ' ' + myFather.job();
10行目を実行した後の結果の値は?
function Person() {
this.firstName = 'John';
}
Person.prototype ={
Job: x => 'Developer'
};
const myFather = new Person();
const result =myFather.firstName + ' ' + myFather.job();
10行目を実行した後の結果の値は?
Correct Answer: A
開発者は、複数の関数を含む ErrorHandler モジュールを持っています。
複数の機能を使用できるようにするには、どのような種類のエクスポートを活用する必要がありますか?
複数の機能を使用できるようにするには、どのような種類のエクスポートを活用する必要がありますか?
Correct Answer: C
開発者は、1 つの引数 cat を取る is Dog 関数を持っています。彼らは、関数を毎分実行するようにスケジュールしたいと考えています。
この関数をスケジュールするための正しい構文は何ですか?
この関数をスケジュールするための正しい構文は何ですか?
Correct Answer: A
型強制を考慮して、次の式は何に評価されますか?
True + '13' + NaN
True + '13' + NaN
Correct Answer: C
コードブロックの結果は?
Correct Answer: D
以下のコードを参照してください。
functionUnderTest(isOK) の非同期関数 {
If (isOK) return 'OK' ;
新しいエラーをスローします('not OK');
)
上記のコードを正確にテストするアサーションはどれですか?
functionUnderTest(isOK) の非同期関数 {
If (isOK) return 'OK' ;
新しいエラーをスローします('not OK');
)
上記のコードを正確にテストするアサーションはどれですか?
Correct Answer: B
以下のコードを考えると:
01 function GameConsole (name) {
02 this.name = name;
03 }
04
05 GameConsole.prototype.load = function(gamename) {
06 console.log( ` $(this.name) is loading a game : $(gamename) ...`);
07 )
08 function Console 16 Bit (name) {
09 GameConsole.call(this, name) ;
10 }
11 Console16bit.prototype = Object.create ( GameConsole.prototype) ;
12 //insert code here
13 console.log( ` $(this.name) is loading a cartridge game : $(gamename) ...`);
14 }
15 const console16bit = new Console16bit(' SNEGeneziz ');
16 console16bit.load(' Super Nonic 3x Force ');
メソッドを使用して次のメッセージを出力するには、開発者は 15 行目に何を挿入する必要がありますか?
> SNEGeneziz はカートリッジ ゲームをロードしています: Super Monic 3x Force . . .
01 function GameConsole (name) {
02 this.name = name;
03 }
04
05 GameConsole.prototype.load = function(gamename) {
06 console.log( ` $(this.name) is loading a game : $(gamename) ...`);
07 )
08 function Console 16 Bit (name) {
09 GameConsole.call(this, name) ;
10 }
11 Console16bit.prototype = Object.create ( GameConsole.prototype) ;
12 //insert code here
13 console.log( ` $(this.name) is loading a cartridge game : $(gamename) ...`);
14 }
15 const console16bit = new Console16bit(' SNEGeneziz ');
16 console16bit.load(' Super Nonic 3x Force ');
メソッドを使用して次のメッセージを出力するには、開発者は 15 行目に何を挿入する必要がありますか?
> SNEGeneziz はカートリッジ ゲームをロードしています: Super Monic 3x Force . . .
Correct Answer: A
以下の HTML を参照してください。
<div id="main">
<ul>
<li>Leo</li>
<li>Tony</li>
<li>Tiger</li>
</ul>
</div>
"Tony" を "Mr. T." に変更する JavaScript ステートメントはどれですか?
<div id="main">
<ul>
<li>Leo</li>
<li>Tony</li>
<li>Tiger</li>
</ul>
</div>
"Tony" を "Mr. T." に変更する JavaScript ステートメントはどれですか?
Correct Answer: C